Skip to content

Commit

Permalink
Fix aofshrink panic
Browse files Browse the repository at this point in the history
fixes #624
  • Loading branch information
tidwall committed Sep 29, 2021
1 parent ad6e5ae commit 6174c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/aofshrink.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (server *Server) aofshrink() {
func() {
server.mu.Lock()
defer server.mu.Unlock()
hook, _ := server.hooks.GetHint(name, &hookHint).(*Hook)
hook, _ := server.hooks.GetHint(&Hook{Name: name}, &hookHint).(*Hook)
if hook == nil {
return
}
Expand Down

0 comments on commit 6174c64

Please sign in to comment.