Browse Source

Merge pull request #3058 from kmlebedev/fix_collectionIsMismatch

pull/3062/head
Chris Lu 3 years ago
committed by GitHub
parent
commit
a84f4eefc2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      weed/shell/command_volume_fix_replication.go

6
weed/shell/command_volume_fix_replication.go

@ -200,14 +200,14 @@ func (c *commandVolumeFixReplication) deleteOneVolume(commandEnv *CommandEnv, wr
}
}
сollectionIsMismatch := false
collectionIsMismatch := false
for _, volumeReplica := range replicas {
if volumeReplica.info.Collection != replica.info.Collection {
fmt.Fprintf(writer, "skip delete volume %d as collection %s is mismatch: %s\n", replica.info.Id, replica.info.Collection, volumeReplica.info.Collection)
сollectionIsMismatch = true
collectionIsMismatch = true
}
}
if сollectionIsMismatch {
if collectionIsMismatch {
continue
}

Loading…
Cancel
Save