mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-19 06:31:54 +00:00
fix(shell): print markVolumeWritable/markVolumeReadonly based on the writable flag (#10283)
This commit is contained in:
@@ -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