Fix aofshrink panic

fixes #624
This commit is contained in:
tidwall 2021-09-29 11:15:53 -07:00
parent ad6e5aeab8
commit 6174c6434d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}