diff options
author | Simo Sorce <idra@samba.org> | 2008-10-15 14:03:20 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-10-16 12:55:30 -0400 |
commit | 2deeb99fff1a90c79ba1927e1a069362e250a63c (patch) | |
tree | ccbc23ab01a85dc7f98309be5c93969bfc62ea93 /source4/lib/ldb/ldb_wrap.c | |
parent | f0dcc1fad452a25305a9c8425eadc68e7f569bfd (diff) | |
download | samba-2deeb99fff1a90c79ba1927e1a069362e250a63c.tar.gz samba-2deeb99fff1a90c79ba1927e1a069362e250a63c.tar.bz2 samba-2deeb99fff1a90c79ba1927e1a069362e250a63c.zip |
Transform the sequence_number operation into a normal extended operation as it should always have been. Make it also async so that it is not a special case.
Diffstat (limited to 'source4/lib/ldb/ldb_wrap.c')
-rw-r--r-- | source4/lib/ldb/ldb_wrap.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/source4/lib/ldb/ldb_wrap.c b/source4/lib/ldb/ldb_wrap.c index cc8099f27f..bc9266a306 100644 --- a/source4/lib/ldb/ldb_wrap.c +++ b/source4/lib/ldb/ldb_wrap.c @@ -3505,25 +3505,6 @@ int py_module_del_transaction(struct ldb_module *mod) return LDB_SUCCESS; } -int py_module_sequence_number(struct ldb_module *mod, struct ldb_request *req) -{ - PyObject *py_ldb = mod->private_data; - PyObject *py_result; - int ret; - - py_result = PyObject_CallMethod(py_ldb, "sequence_number", "ili", req->op.seq_num.type, req->op.seq_num.seq_num, req->op.seq_num.flags); - - if (py_result == NULL) { - return LDB_ERR_OPERATIONS_ERROR; - } - - ret = PyInt_AsLong(py_result); - - Py_DECREF(py_result); - - return ret; -} - static int py_module_destructor(void *_mod) { struct ldb_module *mod = _mod; @@ -6648,7 +6629,6 @@ SWIGINTERN PyObject *_wrap_register_module(PyObject *SWIGUNUSEDPARM(self), PyObj arg1->start_transaction = py_module_start_transaction; arg1->end_transaction = py_module_end_transaction; arg1->del_transaction = py_module_del_transaction; - arg1->sequence_number = py_module_sequence_number; result = ldb_register_module((struct ldb_module_ops const *)arg1); if (result != 0) { PyErr_SetObject(PyExc_LdbError, Py_BuildValue((char *)"(i,s)", result, ldb_strerror(result))); |