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

Function tran2req

db/sqloffload.c:543–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543int tran2req(int dbtran)
544{
545 switch (dbtran) {
546 case TRANLEVEL_SOSQL:
547 return OSQL_SOCK_REQ;
548
549 case TRANLEVEL_RECOM:
550 return OSQL_RECOM_REQ;
551
552 case TRANLEVEL_SNAPISOL:
553 return OSQL_SNAPISOL_REQ;
554
555 case TRANLEVEL_SERIAL:
556 return OSQL_SERIAL_REQ;
557 }
558
559 logmsg(LOGMSG_ERROR, "%s: unknown transaction mode %d\n", __func__, dbtran);
560 {
561 int once = 0;
562 if (!once) {
563 cheap_stack_trace();
564 once = 1;
565 }
566 }
567
568 return OSQL_REQINV;
569}
570
571int osql_clean_sqlclntstate(struct sqlclntstate *clnt)
572{

Callers 3

srs_tran_replay_intFunction · 0.85
fdb_svc_trans_commitFunction · 0.85
osql_reuse_sqlthrFunction · 0.85

Calls 1

logmsgFunction · 0.50

Tested by

no test coverage detected