summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/partition.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-09 12:23:13 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-09 04:32:18 +0200
commit17275561a062b0453f9d2547ecebd6dff08aaa24 (patch)
treef9a3ed4088643ab4519c26c8739a501551292882 /source4/dsdb/samdb/ldb_modules/partition.c
parent6ec963eef7c00315b2d941951602825a89fabb6e (diff)
downloadsamba-17275561a062b0453f9d2547ecebd6dff08aaa24.tar.gz
samba-17275561a062b0453f9d2547ecebd6dff08aaa24.tar.bz2
samba-17275561a062b0453f9d2547ecebd6dff08aaa24.zip
s4-dsdb: Remove ldb_sequence_type argument from partition_primary_sequence_number
We always want LDB_SEQ_HIGHEST_SEQ here. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/partition.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/partition.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c
index 8546d2f290..5f8c293ca0 100644
--- a/source4/dsdb/samdb/ldb_modules/partition.c
+++ b/source4/dsdb/samdb/ldb_modules/partition.c
@@ -985,7 +985,7 @@ static int partition_del_trans(struct ldb_module *module)
}
int partition_primary_sequence_number(struct ldb_module *module, TALLOC_CTX *mem_ctx,
- enum ldb_sequence_type type, uint64_t *seq_number,
+ uint64_t *seq_number,
struct ldb_request *parent)
{
int ret;
@@ -997,7 +997,7 @@ int partition_primary_sequence_number(struct ldb_module *module, TALLOC_CTX *mem
if (tseq == NULL) {
return ldb_oom(ldb_module_get_ctx(module));
}
- tseq->type = type;
+ tseq->type = LDB_SEQ_HIGHEST_SEQ;
ret = dsdb_module_extended(module, tseq, &res,
LDB_EXTENDED_SEQUENCE_NUMBER,
@@ -1035,7 +1035,7 @@ int partition_sequence_number_from_partitions(struct ldb_module *module,
struct partition_private_data *data = talloc_get_type(ldb_module_get_private(module),
struct partition_private_data);
- ret = partition_primary_sequence_number(module, module, LDB_SEQ_HIGHEST_SEQ, &seq_number, NULL);
+ ret = partition_primary_sequence_number(module, module, &seq_number, NULL);
if (ret != LDB_SUCCESS) {
return ret;
}