Skip to content

Commit 03359f6

Browse files
committed
Ensure that depth is 0 if readFileNum == writeFileNum and readPos == writePos.
1 parent 99f6193 commit 03359f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

diskqueue.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,8 @@ func (d *diskQueue) handleReadError() {
608608

609609
// significant state change, schedule a sync on the next iteration
610610
d.needSync = true
611+
612+
d.checkTailCorruption(d.depth)
611613
}
612614

613615
// ioLoop provides the backend for exposing a go channel (via ReadChan())

0 commit comments

Comments
 (0)