summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/partition_init.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-14 14:13:52 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-10-21 22:43:53 +1100
commit6a77165c8ad3fdf37218e37352859926eca48922 (patch)
treedc2d1f174b508acbd03f42512f352a0ef68193aa /source4/dsdb/samdb/ldb_modules/partition_init.c
parente62200e253a393ce0a427ff315267efbd2eaeeea (diff)
downloadsamba-6a77165c8ad3fdf37218e37352859926eca48922.tar.gz
samba-6a77165c8ad3fdf37218e37352859926eca48922.tar.bz2
samba-6a77165c8ad3fdf37218e37352859926eca48922.zip
s4:dsdb Only reload partition metadata on search and transaction start
I see no reason to reload it when in a transaction - it can't change on us anyway (we possibly need to watch for our own changes to @PARTITION however) Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/partition_init.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/partition_init.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition_init.c b/source4/dsdb/samdb/ldb_modules/partition_init.c
index 2da938d20e..3fbd2c128a 100644
--- a/source4/dsdb/samdb/ldb_modules/partition_init.c
+++ b/source4/dsdb/samdb/ldb_modules/partition_init.c
@@ -480,19 +480,10 @@ int partition_create(struct ldb_module *module, struct ldb_request *req)
data = talloc_get_type(module->private_data, struct partition_private_data);
if (!data) {
- return LDB_ERR_OPERATIONS_ERROR;
- }
-
- if (!data) {
/* We are not going to create a partition before we are even set up */
return LDB_ERR_UNWILLING_TO_PERFORM;
}
- ret = partition_reload_metadata(module, data, req, NULL);
- if (ret != LDB_SUCCESS) {
- return ret;
- }
-
for (i=0; data->partitions && data->partitions[i]; i++) {
if (ldb_dn_compare(data->partitions[i]->ctrl->dn, dn) == 0) {
partition = data->partitions[i];