Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreallocIDs ¶
type PreallocIDs struct {
// contains filtered or unexported fields
}
PreallocIDs mantains the state of preallocated table IDs.
func New ¶
func New(tables []*metautil.Table) *PreallocIDs
New collects the requirement of prealloc IDs and return a not-yet-allocated PreallocIDs.
func (*PreallocIDs) Alloc ¶
func (p *PreallocIDs) Alloc(m Allocator) error
preallocTableIDs peralloc the id for [start, end)
func (*PreallocIDs) Prealloced ¶
func (p *PreallocIDs) Prealloced(tid int64) bool
Prealloced checks whether a table ID has been successfully allocated.
func (*PreallocIDs) PreallocedFor ¶
func (p *PreallocIDs) PreallocedFor(ti *model.TableInfo) bool
Click to show internal directories.
Click to hide internal directories.