From 67763fb3751cc186c6054ef8150368e7e9d11601 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 14 Jul 2018 14:09:45 -0700 Subject: [PATCH] fix data center setting error --- weed/server/filer_grpc_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }