summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-17 16:11:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:43:40 -0500
commitf58e49ade829067064602cd8d143c7223f75057e (patch)
treeb7e5fd6d55dcb560e6640caa28b5c6bcb84c6873 /source4/dsdb/samdb
parentfb9dabe39e18ff9cfd3abb4160ba19971ca33795 (diff)
downloadsamba-f58e49ade829067064602cd8d143c7223f75057e.tar.gz
samba-f58e49ade829067064602cd8d143c7223f75057e.tar.bz2
samba-f58e49ade829067064602cd8d143c7223f75057e.zip
r20853: attach the DSDB_CONTROL_CURRENT_PARTITION_OID control when requests
are passed to a specific partition metze (This used to be commit 06a46b1db46251989676fb04548f038930c83eb5)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/partition.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c
index 5ac954d65b..9a0dd9ca0a 100644
--- a/source4/dsdb/samdb/ldb_modules/partition.c
+++ b/source4/dsdb/samdb/ldb_modules/partition.c
@@ -272,7 +272,8 @@ static int partition_send_all(struct ldb_module *module,
* requests must be replicated to all backends */
static int partition_replicate(struct ldb_module *module, struct ldb_request *req, struct ldb_dn *dn)
{
- int i;
+ unsigned i;
+ int ret;
struct dsdb_control_current_partition *partition;
struct ldb_module *backend;
struct partition_private_data *data = talloc_get_type(module->private_data,
@@ -313,9 +314,13 @@ static int partition_replicate(struct ldb_module *module, struct ldb_request *re
return LDB_ERR_OPERATIONS_ERROR;
}
+ ret = ldb_request_add_control(req, DSDB_CONTROL_CURRENT_PARTITION_OID, false, partition);
+ if (ret != LDB_SUCCESS) {
+ return ret;
+ }
+
/* issue request */
return ldb_next_request(backend, req);
-
}
/* search */