mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-27 07:20:44 +01:00
fix(shell): print markVolumeWritable/markVolumeReadonly based on the writable flag (#10283)
This commit is contained in:
1 parent
fd5a6ff427
commit
95023af489
1 file changed
+5
-1
@@ -233,7 +233,11 @@ func markVolumeWritable(grpcDialOption grpc.DialOption, volumeId needle.VolumeId
|
||||
}
|
||||
|
||||
func markVolumeReplicaWritable(grpcDialOption grpc.DialOption, volumeId needle.VolumeId, location wdclient.Location, writable, persist bool) error {
|
||||
fmt.Printf("markVolumeReadonly %d on %s ...\n", volumeId, location.Url)
|
||||
if writable {
|
||||
fmt.Printf("markVolumeWritable %d on %s ...\n", volumeId, location.Url)
|
||||
} else {
|
||||
fmt.Printf("markVolumeReadonly %d on %s persist=%v ...\n", volumeId, location.Url, persist)
|
||||
}
|
||||
return markVolumeWritable(grpcDialOption, volumeId, location.ServerAddress(), writable, persist)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user