diff --git a/weed/filesys/dirty_page.go b/weed/filesys/dirty_page.go index 77eae927e..ce74d64d5 100644 --- a/weed/filesys/dirty_page.go +++ b/weed/filesys/dirty_page.go @@ -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) } }