unregister index from expvar stats on close
This commit is contained in:
parent
709b418823
commit
d0c6dbc9cf
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue