MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / GenId

Method GenId

bucket_manager.go:82–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func (g *IDGenerator) GenId() uint64 {
83 g.currentMaxId++
84 return g.currentMaxId
85}
86
87func (g *IDGenerator) CompareAndSetMaxId(id uint64) {
88 if id > g.currentMaxId {

Callers 4

NewBucketMethod · 0.80
subscribeMethod · 0.80
deleteBucketMethod · 0.80
TestTx_putBucketFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestTx_putBucketFunction · 0.64