diff --git a/controller/controller.go b/controller/controller.go index 33a845bd..89402726 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -598,6 +598,10 @@ func randomKey(n int) string { func (c *Controller) reset() { c.aofsz = 0 c.cols = btree.New(16, 0) + c.exlistmu.Lock() + c.exlist = nil + c.exlistmu.Unlock() + c.expires = make(map[string]map[string]time.Time) } func (c *Controller) command(