Skip to content

Commit aaf9459

Browse files
author
ffffwh
committed
fix stuck in WaitForAllCommitted #1056
1 parent 792537b commit aaf9459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/mysql/applier_mts.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (mm *MtsManager) WaitForAllCommitted(logger g.LoggerType) bool {
6262
defer t.Stop()
6363

6464
for {
65-
if atomic.LoadInt64(&mm.lastCommitted) == mm.lastEnqueue {
65+
if atomic.LoadInt64(&mm.lastCommitted) >= mm.lastEnqueue {
6666
return true
6767
}
6868

0 commit comments

Comments
 (0)