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

Method checkTxIsClosed

tx.go:593–598  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

591}
592
593func (tx *Tx) checkTxIsClosed() error {
594 if tx.isClosed() {
595 return ErrTxClosed
596 }
597 return nil
598}
599
600// put sets the value for a key in the bucket.
601// Returns an error if tx is closed, if performing a write operation on a read-only transaction, if the key is empty.

Callers 15

IterateBucketsMethod · 0.95
DeleteBucketMethod · 0.95
RPeekMethod · 0.95
isKeyValidMethod · 0.95
LPeekMethod · 0.95
LSizeMethod · 0.95
LRangeMethod · 0.95
LTrimMethod · 0.95
LRemByIndexMethod · 0.95
LKeysMethod · 0.95
ExpireListMethod · 0.95
GetListTTLMethod · 0.95

Calls 1

isClosedMethod · 0.95

Tested by

no test coverage detected