clear expires on reset, #258

This commit is contained in:
Josh Baker 2018-01-30 10:30:03 -07:00
parent e1fe83c54c
commit c62975b505
1 changed files with 4 additions and 0 deletions

View File

@ -598,6 +598,10 @@ func randomKey(n int) string {
func (c *Controller) reset() { func (c *Controller) reset() {
c.aofsz = 0 c.aofsz = 0
c.cols = btree.New(16, 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( func (c *Controller) command(