From 329e3749381fee4182fdbf6015a42e4bdca07168 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 11 Aug 2012 11:00:53 +1000 Subject: s4-dsdb: Remove support for per-partition sequence numbers These sequence numbers were only used for telling if the schema was changed, and are no longer directly related to the replication USN. The per-partition replication USN can be obtained from the @REPLCHANGED record on the per-partition database, and this is done with an ldb_search(). Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/partition.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index f980b67b26..435a791f1c 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -1058,14 +1058,6 @@ int partition_sequence_number_from_partitions(struct ldb_module *module, ldb_extended_default_callback, NULL); LDB_REQ_SET_LOCATION(treq); - if (ret != LDB_SUCCESS) { - talloc_free(res); - return ret; - } - - ret = ldb_request_add_control(treq, - DSDB_CONTROL_CURRENT_PARTITION_OID, - false, data->partitions[i]->ctrl); if (ret != LDB_SUCCESS) { talloc_free(res); return ret; @@ -1116,21 +1108,6 @@ static int partition_sequence_number(struct ldb_module *module, struct ldb_reque break; case LDB_SEQ_HIGHEST_SEQ: - - /* - * We can only query per-partition the individual - * partition sequence number, so we don't need to run - * this reload for every query of the next global seq - * number - */ - p = find_partition(data, NULL, req); - if (p != NULL) { - /* the caller specified what partition they want the - * sequence number operation on - just pass it on - */ - return ldb_next_request(p->module, req); - } - ret = partition_metadata_sequence_number(module, &seq_number); if (ret != LDB_SUCCESS) { return ret; -- cgit