mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 10:48:03 +08:00
add delay if need to resume from disk
This commit is contained in:
@@ -123,11 +123,11 @@ func (fs *FilerServer) SubscribeLocalMetadata(req *filer_pb.SubscribeMetadataReq
|
||||
return true
|
||||
}, eachLogEntryFn)
|
||||
if readInMemoryLogErr != nil {
|
||||
time.Sleep(1127 * time.Millisecond)
|
||||
if readInMemoryLogErr == log_buffer.ResumeFromDiskError {
|
||||
continue
|
||||
}
|
||||
glog.Errorf("processed to %v: %v", lastReadTime, readInMemoryLogErr)
|
||||
time.Sleep(1127 * time.Millisecond)
|
||||
if readInMemoryLogErr != log_buffer.ResumeError {
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user