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

Method commitAndSend

tx.go:134–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132}
133
134func (tx *Tx) commitAndSend() (func() error, error) {
135 req, err := tx.db.sendToWriteCh(tx)
136 if err != nil {
137 return nil, err
138 }
139 ret := func() error {
140 err := req.Wait()
141 return err
142 }
143
144 return ret, nil
145}
146
147func (tx *Tx) checkSize() error {
148 count := tx.pendingWrites.size

Callers 1

CommitWithMethod · 0.95

Calls 2

sendToWriteChMethod · 0.80
WaitMethod · 0.80

Tested by

no test coverage detected