Skip to content

Commit

Permalink
Perform rewrite operation after repairing Replication append aof file
Browse files Browse the repository at this point in the history
  • Loading branch information
snower committed Apr 28, 2024
1 parent 3d52a41 commit 1038fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ func (self *ReplicationClient) ProcessAofAppend() {
}
if aof.AppendLock(aofLock) {
self.glock.Lock()
if self.replayAofIndex != aof.aofFileIndex {
if self.replayAofIndex == aof.aofFileIndex {
aof.ExecuteConsistencyBarrierCommand(0)
aof.isWaitRewite = false
self.manager.slock.Log().Infof("Replication ready wait aof execute rewrite")
Expand Down

0 comments on commit 1038fc3

Please sign in to comment.