From d0c6dbc9cfb7057a80b034b0a210a4cabfb4e1f3 Mon Sep 17 00:00:00 2001 From: Marty Schoch Date: Wed, 20 Apr 2016 11:43:14 -0400 Subject: [PATCH] unregister index from expvar stats on close --- index_impl.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index_impl.go b/index_impl.go index b2771645..279d4eb4 100644 --- a/index_impl.go +++ b/index_impl.go @@ -703,6 +703,8 @@ func (i *indexImpl) Close() error { i.mutex.Lock() defer i.mutex.Unlock() + indexStats.UnRegister(i) + i.open = false return i.i.Close() }