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

Method CompareAndSetMaxId

bucket_manager.go:87–91  ·  view source on GitHub ↗
(id uint64)

Source from the content-addressed store, hash-verified

85}
86
87func (g *IDGenerator) CompareAndSetMaxId(id uint64) {
88 if id > g.currentMaxId {
89 g.currentMaxId = id
90 }
91}
92
93func (bm *BucketManager) ExistBucket(ds core.Ds, name core.BucketName) bool {
94 bucket, err := bm.GetBucket(ds, name)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected