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

Method getSetEntryNewAddRecordCount

tx.go:386–398  ·  view source on GitHub ↗
(_ core.BucketId, entry *core.Entry)

Source from the content-addressed store, hash-verified

384}
385
386func (tx *Tx) getSetEntryNewAddRecordCount(_ core.BucketId, entry *core.Entry) (int64, error) {
387 var res int64
388
389 if entry.Meta.Flag == DataDeleteFlag {
390 res--
391 }
392
393 if entry.Meta.Flag == DataSetFlag {
394 res++
395 }
396
397 return res, nil
398}
399
400func (tx *Tx) getSortedSetEntryNewAddRecordCount(bucketId core.BucketId, entry *core.Entry) (int64, error) {
401 var res int64

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected