avoid dead loop

This commit is contained in:
Chris Lu 2020-04-09 21:43:26 -07:00
parent 56ec8c4513
commit eb39df2704

View file

@ -130,10 +130,10 @@ func (pages *ContinuousDirtyPages) saveExistingLargestPageToStorage() (chunk *fi
if err == nil {
hasSavedData = true
glog.V(3).Infof("%s saveToStorage [%d,%d) %s", pages.f.fullpath(), maxList.Offset(), maxList.Offset()+maxList.Size(), chunk.FileId)
time.Sleep(5 * time.Second)
return
} else {
glog.V(0).Infof("%s saveToStorage [%d,%d): %v", pages.f.fullpath(), maxList.Offset(), maxList.Offset()+maxList.Size(), err)
return
time.Sleep(5 * time.Second)
}
}