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

Method sendToWriteCh

db.go:1068–1076  ·  view source on GitHub ↗
(tx *Tx)

Source from the content-addressed store, hash-verified

1066}
1067
1068func (db *DB) sendToWriteCh(tx *Tx) (*request, error) {
1069 req := requestPool.Get().(*request)
1070 req.reset()
1071 req.Wg.Add(1)
1072 req.tx = tx
1073 req.IncrRef() // for db write
1074 db.writeCh <- req // Handled in doWrites.
1075 return req, nil
1076}
1077
1078func (db *DB) checkListExpired() {
1079 db.Index.List.rangeIdx(func(l *data.List) {

Callers 1

commitAndSendMethod · 0.80

Calls 4

resetMethod · 0.80
IncrRefMethod · 0.80
GetMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected