diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-11 11:00:53 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-11 12:53:42 +1000 |
commit | 329e3749381fee4182fdbf6015a42e4bdca07168 (patch) | |
tree | f5b1525568b0c225ab325504ce34f6ca0e628254 | |
parent | 2d21a9bf5eeb88d738e998ee8f1720487b55e12e (diff) | |
download | samba-329e3749381fee4182fdbf6015a42e4bdca07168.tar.gz samba-329e3749381fee4182fdbf6015a42e4bdca07168.tar.bz2 samba-329e3749381fee4182fdbf6015a42e4bdca07168.zip |
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
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition.c | 23 |
1 files changed, 0 insertions, 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 @@ -1061,14 +1061,6 @@ int partition_sequence_number_from_partitions(struct ldb_module *module, 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; } ret = partition_request(data->partitions[i]->module, treq); @@ -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; |