Browse Source

avoid dead loop

pull/1273/head
Chris Lu 5 years ago
parent
commit
eb39df2704
  1. 4
      weed/filesys/dirty_page.go

4
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)
}
}

Loading…
Cancel
Save