| 1198 | } |
| 1199 | |
| 1200 | static PyObject * |
| 1201 | txn_abort(UpsTransaction *self, PyObject *args) |
| 1202 | { |
| 1203 | if (!PyArg_ParseTuple(args, ":txn_abort")) |
| 1204 | return (0); |
| 1205 | |
| 1206 | ups_status_t st = ups_txn_abort(self->txn, 0); |
| 1207 | if (st) |
| 1208 | THROW(st); |
| 1209 | |
| 1210 | self->txn = 0; |
| 1211 | PyObject_Del(self); |
| 1212 | return (Py_BuildValue("")); |
| 1213 | } |
| 1214 | |
| 1215 | static PyObject * |
| 1216 | txn_commit(UpsTransaction *self, PyObject *args) |
no test coverage detected