Skip to content

Commit

Permalink
fix missing lock
Browse files Browse the repository at this point in the history
  • Loading branch information
tidwall committed May 21, 2023
1 parent add9873 commit 0144ca6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/server/follow.go
Expand Up @@ -302,6 +302,7 @@ func (s *Server) followStep(host string, port int, followc int) error {
if !caughtUp {
if aofsz >= int(aofSize) {
caughtUp = true
s.mu.Lock()
s.flushAOF(false)
s.fcup = true
s.fcuponce = true
Expand Down

0 comments on commit 0144ca6

Please sign in to comment.