mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fixing
This commit is contained in:
parent
721c6197f9
commit
ce55922884
|
@ -158,7 +158,7 @@ func (vs *VolumeServer) VolumeMarkReadonly(ctx context.Context, req *volume_serv
|
||||||
return nil
|
return nil
|
||||||
}); grpcErr != nil {
|
}); grpcErr != nil {
|
||||||
glog.V(0).Infof("connect to %s: %v", vs.GetMaster(), grpcErr)
|
glog.V(0).Infof("connect to %s: %v", vs.GetMaster(), grpcErr)
|
||||||
return resp, fmt.Errorf("grpc VolumeMarkReadonly with master: %v", vs.GetMaster(), grpcErr)
|
return resp, fmt.Errorf("grpc VolumeMarkReadonly with master %s: %v", vs.GetMaster(), grpcErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
err := vs.store.MarkVolumeReadonly(needle.VolumeId(req.VolumeId))
|
err := vs.store.MarkVolumeReadonly(needle.VolumeId(req.VolumeId))
|
||||||
|
@ -186,7 +186,7 @@ func (vs *VolumeServer) VolumeMarkWritable(ctx context.Context, req *volume_serv
|
||||||
return nil
|
return nil
|
||||||
}); grpcErr != nil {
|
}); grpcErr != nil {
|
||||||
glog.V(0).Infof("connect to %s: %v", vs.GetMaster(), grpcErr)
|
glog.V(0).Infof("connect to %s: %v", vs.GetMaster(), grpcErr)
|
||||||
return resp, fmt.Errorf("grpc VolumeMarkWritable with master: %v", vs.GetMaster(), grpcErr)
|
return resp, fmt.Errorf("grpc VolumeMarkWritable with master %s: %v", vs.GetMaster(), grpcErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
err := vs.store.MarkVolumeWritable(needle.VolumeId(req.VolumeId))
|
err := vs.store.MarkVolumeWritable(needle.VolumeId(req.VolumeId))
|
||||||
|
|
Loading…
Reference in a new issue