summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-09 15:16:37 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-09 10:01:04 +0200
commit8dd09ef46dee1056e1ea029375a250b12dacae10 (patch)
tree58c4763de52ec897c91f84759bf2d04e892042c9 /source4/dsdb/samdb
parent0d7b17f4db9d271ae41ade7c7b003b8d264cf6bf (diff)
downloadsamba-8dd09ef46dee1056e1ea029375a250b12dacae10.tar.gz
samba-8dd09ef46dee1056e1ea029375a250b12dacae10.tar.bz2
samba-8dd09ef46dee1056e1ea029375a250b12dacae10.zip
s4-dsdb: Do not reload partition metadata except on transaction start
This ensures that we do not add objects that should go into a partition, but we simply return that an object is not present if the connection was created before the partition was loaded. It is rare to create a new partition. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/partition.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c
index 4a9216bb10..f980b67b26 100644
--- a/source4/dsdb/samdb/ldb_modules/partition.c
+++ b/source4/dsdb/samdb/ldb_modules/partition.c
@@ -549,12 +549,6 @@ static int partition_search(struct ldb_module *module, struct ldb_request *req)
int ret;
bool domain_scope = false, phantom_root = false;
- /* see if we are still up-to-date */
- ret = partition_reload_if_required(module, data, req);
- if (ret != LDB_SUCCESS) {
- return ret;
- }
-
p = find_partition(data, NULL, req);
if (p != NULL) {
/* the caller specified what partition they want the
@@ -1129,11 +1123,6 @@ static int partition_sequence_number(struct ldb_module *module, struct ldb_reque
* this reload for every query of the next global seq
* number
*/
- ret = partition_reload_if_required(module, data, req);
- if (ret != LDB_SUCCESS) {
- return ret;
- }
-
p = find_partition(data, NULL, req);
if (p != NULL) {
/* the caller specified what partition they want the