mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-10 08:17:44 +02:00
fix bug when vid not found
fix https://github.com/seaweedfs/seaweedfs/issues/4193
This commit is contained in:
1 parent
532a352121
commit
31bb91583f
1 file changed
+1
-1
@@ -99,7 +99,7 @@ func doEcEncode(commandEnv *CommandEnv, collection string, vid needle.VolumeId,
|
||||
|
||||
// find volume location
|
||||
locations, found := commandEnv.MasterClient.GetLocations(uint32(vid))
|
||||
if !found && len(locations) > 0 {
|
||||
if !found {
|
||||
return fmt.Errorf("volume %d not found", vid)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user