0
0
Fork 0

unregister index from expvar stats on close

This commit is contained in:
Marty Schoch 2016-04-20 11:43:14 -04:00
parent 709b418823
commit d0c6dbc9cf
1 changed files with 2 additions and 0 deletions

View File

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