()
| 419 | } |
| 420 | |
| 421 | func (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 | |
| 434 | func (hash *Hash) delMeta() error { |
| 435 | err := hash.txn.t.Delete(MetaKey(hash.txn.db, hash.key)) |
no test coverage detected