From 72edf069160d935aed38950ac77f3aad7d25bc3c Mon Sep 17 00:00:00 2001 From: j-griffith Date: Fri, 1 Mar 2019 15:07:07 -0700 Subject: [PATCH] Fix obsolete comment Had a stray comment that got left behind during refactoring, move it back to where it's relevant and reword it a bit to fit the finished product. --- pkg/rbd/nodeserver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/rbd/nodeserver.go b/pkg/rbd/nodeserver.go index 6f6160a4b..2faed49c1 100644 --- a/pkg/rbd/nodeserver.go +++ b/pkg/rbd/nodeserver.go @@ -71,6 +71,8 @@ func (ns *NodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis return &csi.NodePublishVolumeResponse{}, nil } + // if our access mode is a simple SINGLE_NODE_WRITER we're going to ignore the SC directive and use the + // watcher still ignoreMultiWriterEnabled := true if req.VolumeCapability.AccessMode.Mode != csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER { ignoreMultiWriterEnabled = false @@ -80,7 +82,6 @@ func (ns *NodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis if err != nil { return nil, err } - // Check access mode settings in the request, even if SC is RW-Many, if the request is a normal Single Writer volume, we ignore this setting and proceed as normal volOptions.VolName = volName // Mapping RBD image