mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(metanode): if vol is deleted, do not try to get the view of vol
close:#1000018506 Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
parent
6dec8982b4
commit
964a6be097
@ -885,6 +885,9 @@ func (mp *metaPartition) onStart(isCreate bool) (err error) {
|
||||
if err = mp.manager.forceUpdateVolumeView(mp); err != nil {
|
||||
log.LogWarnf("[onStart] vol(%v) mpId(%d) retryCnt(%v), GetVolumeSimpleInfo err[%v]",
|
||||
mp.config.VolName, mp.config.PartitionId, retryCnt, err)
|
||||
if strings.Compare(err.Error(), proto.ErrVolNotExists.Error()) == 0 {
|
||||
return
|
||||
}
|
||||
time.Sleep(3 * time.Second)
|
||||
continue
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user