Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
weed/server/volume_grpc_client_to_master.go
|
@ -119,15 +119,15 @@ func (vs *VolumeServer) doHeartbeat(masterAddress pb.ServerAddress, grpcDialOpti |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if len(in.DuplicatedUuids) > 0 { |
|
|
if len(in.DuplicatedUuids) > 0 { |
|
|
var duplictedDir []string |
|
|
|
|
|
|
|
|
var duplicateDir []string |
|
|
for _, loc := range vs.store.Locations { |
|
|
for _, loc := range vs.store.Locations { |
|
|
for _, uuid := range in.DuplicatedUuids { |
|
|
for _, uuid := range in.DuplicatedUuids { |
|
|
if uuid == loc.DirectoryUuid { |
|
|
if uuid == loc.DirectoryUuid { |
|
|
duplictedDir = append(duplictedDir, loc.Directory) |
|
|
|
|
|
|
|
|
duplicateDir = append(duplicateDir, loc.Directory) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
glog.Errorf("Shut down Volume Server due to duplicated volume directories: %v", duplictedDir) |
|
|
|
|
|
|
|
|
glog.Errorf("Shut down Volume Server due to duplicate volume directories: %v", duplicateDir) |
|
|
os.Exit(1) |
|
|
os.Exit(1) |
|
|
} |
|
|
} |
|
|
if in.GetVolumeSizeLimit() != 0 && vs.store.GetVolumeSizeLimit() != in.GetVolumeSizeLimit() { |
|
|
if in.GetVolumeSizeLimit() != 0 && vs.store.GetVolumeSizeLimit() != in.GetVolumeSizeLimit() { |
|
|