func (tb *table) UpdateMetrics(m *TableMetrics) {
	tb.ptwsLock.Lock()
	for _, ptw := range tb.ptws {
		ptw.pt.UpdateMetrics(&m.partitionMetrics)
		m.PartitionsRefCount += atomic.LoadUint64(&ptw.refCount)
	}
	tb.ptwsLock.Unlock()
}
// UpdateMetrics updates m with metrics from tb.
UpdateMetrics updates m with metrics from tb.
// UpdateMetrics updates m with metrics from tb .
func (tb *table) UpdateMetrics(m *TableMetrics) {
	tb.ptwsLock.Lock()
	for _, ptw := range tb.ptws {
		ptw.pt.UpdateMetrics(&m.partitionMetrics)
		m.PartitionsRefCount += atomic.LoadUint64(&ptw.refCount)
	}
	tb.ptwsLock.Unlock()
}
func ( tb * table ) UpdateMetrics ( m * TableMetrics ) { tb . ptwsLock . Lock ( ) for _ , ptw := range tb . ptws { ptw . pt . UpdateMetrics ( & m . partitionMetrics ) m . PartitionsRefCount += atomic . LoadUint64 ( & ptw . refCount ) } tb . ptwsLock . Unlock ( ) }
UpdateMetrics updates m with metrics from tb.
UpdateMetrics updates m with metrics from tb .