func (tb *table) GetPartitions(dst []*partitionWrapper) []*partitionWrapper {
	tb.ptwsLock.Lock()
	for _, ptw := range tb.ptws {
		ptw.incRef()
		dst = append(dst, ptw)
	}
	tb.ptwsLock.Unlock()

	return dst
}
// GetPartitions appends tb's partitions snapshot to dst and returns the result.
//
// The returned partitions must be passed to PutPartitions
// when they no longer needed.
GetPartitions appends tb's partitions snapshot to dst and returns the result.

The returned partitions must be passed to PutPartitions
when they no longer needed.
// GetPartitions appends tb ' s partitions snapshot to dst and returns the result . // // The returned partitions must be passed to PutPartitions // when they no longer needed .
func (tb *table) GetPartitions(dst []*partitionWrapper) []*partitionWrapper {
	tb.ptwsLock.Lock()
	for _, ptw := range tb.ptws {
		ptw.incRef()
		dst = append(dst, ptw)
	}
	tb.ptwsLock.Unlock()
	return dst
}
func ( tb * table ) GetPartitions ( dst [ ] * partitionWrapper ) [ ] * partitionWrapper { tb . ptwsLock . Lock ( ) for _ , ptw := range tb . ptws { ptw . incRef ( ) dst = append ( dst , ptw ) } tb . ptwsLock . Unlock ( ) return dst }
GetPartitions appends tb's partitions snapshot to dst and returns the result.
GetPartitions appends tb ' s partitions snapshot to dst and returns the result .