MCPcopy Create free account
hub / github.com/distributedio/titan / setMeta

Method setMeta

db/hash.go:421–432  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

419}
420
421func (hash *Hash) setMeta() error {
422 meta := EncodeHashMeta(hash.meta)
423 err := hash.txn.t.Set(MetaKey(hash.txn.db, hash.key), meta)
424 if err != nil {
425 return err
426 }
427 if !hash.Exists() {
428 hash.exists = true
429 }
430 return nil
431
432}
433
434func (hash *Hash) delMeta() error {
435 err := hash.txn.t.Delete(MetaKey(hash.txn.db, hash.key))

Callers 5

HSetMethod · 0.95
HSetNXMethod · 0.95
HIncrByMethod · 0.95
HIncrByFloatMethod · 0.95
HMSetMethod · 0.95

Calls 4

ExistsMethod · 0.95
EncodeHashMetaFunction · 0.85
MetaKeyFunction · 0.85
SetMethod · 0.65

Tested by

no test coverage detected