MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / commitTx

Method commitTx

internal/utils/dbs/batch.go:160–164  ·  view source on GitHub ↗
(tx *sql.Tx)

Source from the content-addressed store, hash-verified

158}
159
160func (this *Batch) commitTx(tx *sql.Tx) error {
161 // always commit without checking database closing status
162 this.db.EndUpdating()
163 return tx.Commit()
164}
165
166func (this *Batch) execItem(tx *sql.Tx, item *batchItem) error {
167 // check database status

Callers 1

ExecMethod · 0.95

Calls 2

EndUpdatingMethod · 0.80
CommitMethod · 0.45

Tested by

no test coverage detected