svn commit: samba r20853 - in
branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: .
metze at samba.org
metze at samba.org
Wed Jan 17 16:11:47 GMT 2007
Author: metze
Date: 2007-01-17 16:11:46 +0000 (Wed, 17 Jan 2007)
New Revision: 20853
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20853
Log:
attach the DSDB_CONTROL_CURRENT_PARTITION_OID control when requests
are passed to a specific partition
metze
Modified:
branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/partition.c
Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/partition.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/partition.c 2007-01-17 16:10:33 UTC (rev 20852)
+++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/partition.c 2007-01-17 16:11:46 UTC (rev 20853)
@@ -272,7 +272,8 @@
* 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 @@
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 */
More information about the samba-cvs
mailing list