MCPcopy Create free account
hub / github.com/cruppstahl/upscaledb / txn_begin

Function txn_begin

python/src/python.cc:1181–1198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1179}
1180
1181static PyObject *
1182txn_begin(UpsTransaction *self, PyObject *args)
1183{
1184 UpsEnvironment *env = 0;
1185
1186 if (!PyArg_ParseTuple(args, "O!:begin", &UpsEnvironment_Type, &env))
1187 return (0);
1188
1189 if (self->txn)
1190 ups_txn_abort(self->txn, 0);
1191
1192 ups_status_t st = ups_txn_begin(&self->txn, env->env, 0, 0, 0);
1193 if (st)
1194 THROW(st);
1195
1196 Py_INCREF(self);
1197 return ((PyObject *)self);
1198}
1199
1200static PyObject *
1201txn_abort(UpsTransaction *self, PyObject *args)

Callers 3

executeMethod · 0.85
executeMethod · 0.85
construct_txnFunction · 0.85

Calls 2

ups_txn_abortFunction · 0.85
ups_txn_beginFunction · 0.85

Tested by

no test coverage detected