mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add delay if need to resume from disk
This commit is contained in:
parent
faf84d8fb6
commit
2d6fcdf83a
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue