MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / trans_commit_shadow

Function trans_commit_shadow

db/glue.c:487–496  ·  view source on GitHub ↗

* Shadow transaction have no berkdb txn and executes (most of the time) * on replicants; * There is nothing to wait after. * I also prefer to pass the bdberr on the higher levels * */

Source from the content-addressed store, hash-verified

485 *
486 */
487int trans_commit_shadow(void *trans, int *bdberr)
488{
489 int rc = 0;
490 ;
491
492 *bdberr = 0;
493 rc = bdb_tran_commit(thedb->bdb_env, trans, bdberr);
494
495 return rc;
496}
497
498/**
499 * Shadow transaction have no berkdb txn and executes (most of the time)

Callers 3

fdb_svc_trans_commitFunction · 0.85
do_commitrollbackFunction · 0.85
sqlite3BtreeCommitFunction · 0.85

Calls 1

bdb_tran_commitFunction · 0.85

Tested by

no test coverage detected