fix(shell): print markVolumeWritable/markVolumeReadonly based on the writable flag (#10283)

This commit is contained in:
qzhello
2026-07-09 00:30:21 -07:00
committed by GitHub
parent fd5a6ff427
commit 95023af489
+5 -1
View File
@@ -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)
}