func (tb *table) MustClose() {
	close(tb.stop)
	tb.retentionWatcherWG.Wait()

	tb.ptwsLock.Lock()
	ptws := tb.ptws
	tb.ptws = nil
	tb.ptwsLock.Unlock()

	// Decrement references to partitions, so they may be eventually closed after
	// pending searches are done.
	for _, ptw := range ptws {
		ptw.decRef()
	}

	// Release exclusive lock on the table.
	if err := tb.flockF.Close(); err != nil {
		logger.Panicf("FATAL: cannot release lock on %q: %s", tb.flockF.Name(), err)
	}
}
// MustClose closes the table.
MustClose closes the table.
// MustClose closes the table .
func (tb *table) MustClose() {
	close(tb.stop)
	tb.retentionWatcherWG.Wait()
	tb.ptwsLock.Lock()
	ptws := tb.ptws
	tb.ptws = nil
	tb.ptwsLock.Unlock()
	for _, ptw := range ptws {
		ptw.decRef()
	}
	if err := tb.flockF.Close(); err != nil {
		logger.Panicf("FATAL: cannot release lock on %q: %s", tb.flockF.Name(), err)
	}
}
func ( tb * table ) MustClose ( ) { close ( tb . stop ) tb . retentionWatcherWG . Wait ( ) tb . ptwsLock . Lock ( ) ptws := tb . ptws tb . ptws = nil tb . ptwsLock . Unlock ( ) for _ , ptw := range ptws { ptw . decRef ( ) } if err := tb . flockF . Close ( ) ; err != nil { logger . Panicf ( " " , tb . flockF . Name ( ) , err ) } }
MustClose closes the table.
MustClose closes the table .
// Decrement references to partitions, so they may be eventually closed after // pending searches are done. // Release exclusive lock on the table.