diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.go index 3e15cc546..1ec5439a5 100644 --- a/weed/server/filer_grpc_server.go +++ b/weed/server/filer_grpc_server.go @@ -176,7 +176,7 @@ func (fs *FilerServer) AssignVolume(ctx context.Context, req *filer_pb.AssignVol var altRequest *operation.VolumeAssignRequest dataCenter := req.DataCenter - if dataCenter!=""{ + if dataCenter == "" { dataCenter = fs.option.DataCenter }