summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/partition_init.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-24 12:50:13 -0700
committerAndrew Tridgell <tridge@samba.org>2010-09-25 10:38:45 -0700
commit85ba79063f35b5a073b3670b82daa2aa6dfb40bb (patch)
tree9563a66c992846c62db6ca8537029acf7aa02a37 /source4/dsdb/samdb/ldb_modules/partition_init.c
parent5568fcd88b2a32ba389694ee35ab521af1ea7394 (diff)
downloadsamba-85ba79063f35b5a073b3670b82daa2aa6dfb40bb.tar.gz
samba-85ba79063f35b5a073b3670b82daa2aa6dfb40bb.tar.bz2
samba-85ba79063f35b5a073b3670b82daa2aa6dfb40bb.zip
ldb: mark the location of a lot more ldb requests
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/partition_init.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/partition_init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition_init.c b/source4/dsdb/samdb/ldb_modules/partition_init.c
index 87c25430b5..0ab8bada13 100644
--- a/source4/dsdb/samdb/ldb_modules/partition_init.c
+++ b/source4/dsdb/samdb/ldb_modules/partition_init.c
@@ -562,6 +562,7 @@ static int new_partition_set_replicated_metadata(struct ldb_context *ldb,
ret = ldb_build_add_req(&add_req, ldb, replicate_res,
replicate_res->msgs[0], NULL, NULL,
ldb_op_default_callback, last_req);
+ LDB_REQ_SET_LOCATION(add_req);
last_req = add_req;
if (ret != LDB_SUCCESS) {
/* return directly, this is a very unlikely error */
@@ -589,6 +590,7 @@ static int new_partition_set_replicated_metadata(struct ldb_context *ldb,
/* Build del request */
ret = ldb_build_del_req(&del_req, ldb, replicate_res, replicate_res->msgs[0]->dn, NULL, NULL,
ldb_op_default_callback, last_req);
+ LDB_REQ_SET_LOCATION(del_req);
last_req = del_req;
if (ret != LDB_SUCCESS) {
/* return directly, this is a very unlikely error */
@@ -615,6 +617,7 @@ static int new_partition_set_replicated_metadata(struct ldb_context *ldb,
/* Build add request */
ret = ldb_build_add_req(&add_req, ldb, replicate_res, replicate_res->msgs[0], NULL, NULL,
ldb_op_default_callback, last_req);
+ LDB_REQ_SET_LOCATION(add_req);
last_req = add_req;
if (ret != LDB_SUCCESS) {
/* return directly, this is a very unlikely error */
@@ -752,7 +755,7 @@ int partition_create(struct ldb_module *module, struct ldb_request *req)
/* Perform modify on @PARTITION record */
ret = ldb_build_mod_req(&mod_req, ldb, req, mod_msg, NULL, NULL,
ldb_op_default_callback, req);
-
+ LDB_REQ_SET_LOCATION(mod_req);
if (ret != LDB_SUCCESS) {
return ret;
}