mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s4:ldb Provide bindings for ldb_transaction_prepare_commit()
This commit is contained in:
parent
09338e60bc
commit
2fd831407d
@ -477,6 +477,12 @@ static PyObject *py_ldb_transaction_commit(PyLdbObject *self)
|
|||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static PyObject *py_ldb_transaction_prepare_commit(PyLdbObject *self)
|
||||||
|
{
|
||||||
|
PyErr_LDB_ERROR_IS_ERR_RAISE(PyExc_LdbError, ldb_transaction_prepare_commit(PyLdb_AsLdbContext(self)), PyLdb_AsLdbContext(self));
|
||||||
|
Py_RETURN_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
static PyObject *py_ldb_transaction_cancel(PyLdbObject *self)
|
static PyObject *py_ldb_transaction_cancel(PyLdbObject *self)
|
||||||
{
|
{
|
||||||
PyErr_LDB_ERROR_IS_ERR_RAISE(PyExc_LdbError, ldb_transaction_cancel(PyLdb_AsLdbContext(self)), PyLdb_AsLdbContext(self));
|
PyErr_LDB_ERROR_IS_ERR_RAISE(PyExc_LdbError, ldb_transaction_cancel(PyLdb_AsLdbContext(self)), PyLdb_AsLdbContext(self));
|
||||||
@ -1224,6 +1230,9 @@ static PyMethodDef py_ldb_methods[] = {
|
|||||||
{ "transaction_start", (PyCFunction)py_ldb_transaction_start, METH_NOARGS,
|
{ "transaction_start", (PyCFunction)py_ldb_transaction_start, METH_NOARGS,
|
||||||
"S.transaction_start() -> None\n"
|
"S.transaction_start() -> None\n"
|
||||||
"Start a new transaction." },
|
"Start a new transaction." },
|
||||||
|
{ "transaction_prepare_commit", (PyCFunction)py_ldb_transaction_prepare_commit, METH_NOARGS,
|
||||||
|
"S.transaction_prepare_commit() -> None\n"
|
||||||
|
"prepare to commit a new transaction (2-stage commit)." },
|
||||||
{ "transaction_commit", (PyCFunction)py_ldb_transaction_commit, METH_NOARGS,
|
{ "transaction_commit", (PyCFunction)py_ldb_transaction_commit, METH_NOARGS,
|
||||||
"S.transaction_commit() -> None\n"
|
"S.transaction_commit() -> None\n"
|
||||||
"commit a new transaction." },
|
"commit a new transaction." },
|
||||||
|
Loading…
Reference in New Issue
Block a user