Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
82
func
(g *IDGenerator) GenId() uint64 {
83
g.currentMaxId++
84
return
g.currentMaxId
85
}
86
87
func
(g *IDGenerator) CompareAndSetMaxId(id uint64) {
88
if
id > g.currentMaxId {
Callers
4
NewBucket
Method · 0.80
subscribe
Method · 0.80
deleteBucket
Method · 0.80
TestTx_putBucket
Function · 0.80
Calls
no outgoing calls
Tested by
1
TestTx_putBucket
Function · 0.64