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

Function recom_commit

db/sqloffload.c:386–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386int recom_commit(struct sqlclntstate *clnt, struct sql_thread *thd,
387 char *tzname, int is_distributed_tran)
388{
389 int rc = 0;
390
391 /* temp hook for sql transactions */
392 if (clnt->dbtran.dtran) {
393 rc = fdb_trans_commit(clnt, TRANS_CLNTCOMM_NORMAL);
394 if (rc) {
395 logmsg(LOGMSG_ERROR, "%s distributed failure rc=%d\n", __func__, rc);
396 return rc;
397 }
398 }
399
400 return rese_commit(clnt, thd, tzname, OSQL_RECOM_REQ, is_distributed_tran);
401}
402
403int recom_abort(struct sqlclntstate *clnt)
404{

Callers 3

fdb_svc_trans_commitFunction · 0.85
do_commitrollbackFunction · 0.85
sqlite3BtreeCommitFunction · 0.85

Calls 3

fdb_trans_commitFunction · 0.85
rese_commitFunction · 0.85
logmsgFunction · 0.50

Tested by

no test coverage detected