mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-04 02:39:01 +08:00
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
This commit is contained in:
commit
82ef66cc19
@ -163,9 +163,10 @@ func (c *commandFsVerify) verifyProcessMetadata(path string, wg *sync.WaitGroup)
|
||||
Directory: message.NewParentPath,
|
||||
Name: message.NewEntry.Name,
|
||||
})
|
||||
if strings.HasSuffix(errReq.Error(), "no entry is found in filer store") {
|
||||
return nil
|
||||
} else if errReq != nil {
|
||||
if errReq != nil {
|
||||
if strings.HasSuffix(errReq.Error(), "no entry is found in filer store") {
|
||||
return nil
|
||||
}
|
||||
return errReq
|
||||
}
|
||||
if entryResp.Entry.Attributes.Mtime == message.NewEntry.Attributes.Mtime &&
|
||||
|
@ -90,6 +90,11 @@ func (t *Topology) UnRegisterDataNode(dn *DataNode) {
|
||||
vl.SetVolumeUnavailable(dn, v.Id)
|
||||
}
|
||||
|
||||
// unregister ec shards when volume server disconnected
|
||||
for _, s := range dn.GetEcShards() {
|
||||
t.UnRegisterEcShards(s, dn)
|
||||
}
|
||||
|
||||
negativeUsages := dn.GetDiskUsages().negative()
|
||||
dn.UpAdjustDiskUsageDelta(negativeUsages)
|
||||
dn.DeltaUpdateVolumes([]storage.VolumeInfo{}, dn.GetVolumes())
|
||||
|
Loading…
Reference in New Issue
Block a user