From 6174c6434d3e5fd4dd736c531fc591e0c7416a01 Mon Sep 17 00:00:00 2001 From: tidwall Date: Wed, 29 Sep 2021 11:15:53 -0700 Subject: [PATCH] Fix aofshrink panic fixes #624 --- internal/server/aofshrink.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/aofshrink.go b/internal/server/aofshrink.go index bd1c5f08..fa0f4a6a 100644 --- a/internal/server/aofshrink.go +++ b/internal/server/aofshrink.go @@ -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 }