summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-07-16 13:01:56 +0200
committerStefan Metzmacher <metze@samba.org>2008-07-16 14:42:11 +0200
commitf0e44c35afce5ceec5d247dbd4205301251e403c (patch)
tree2e0e3510aaed9e63bca5945d9f6a19111a2a54e7 /source4/torture
parentf3fae86549ee0ea6cef5cee27af7bb53e7963d7b (diff)
downloadsamba-f0e44c35afce5ceec5d247dbd4205301251e403c.tar.gz
samba-f0e44c35afce5ceec5d247dbd4205301251e403c.tar.bz2
samba-f0e44c35afce5ceec5d247dbd4205301251e403c.zip
drsuapi: make use of the 'more_data' field in DsGetNCChangesCtr[1|6]
metze (This used to be commit 35c7fa470a7433d081403b2b57a331c7dc287aef)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c2
-rw-r--r--source4/torture/rpc/dssync.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c
index 2631746e95..2cea8e9a9b 100644
--- a/source4/torture/libnet/libnet_BecomeDC.c
+++ b/source4/torture/libnet/libnet_BecomeDC.c
@@ -416,7 +416,7 @@ static NTSTATUS test_become_dc_schema_chunk(void *private_data,
for (cur = first_object; cur->next_object; cur = cur->next_object) {}
s->schema_part.last_object = cur;
- if (c->partition->highwatermark.tmp_highest_usn == c->partition->highwatermark.highest_usn) {
+ if (!c->partition->more_data) {
return test_apply_schema(s, c);
}
diff --git a/source4/torture/rpc/dssync.c b/source4/torture/rpc/dssync.c
index 9c07e5f532..053f78e99b 100644
--- a/source4/torture/rpc/dssync.c
+++ b/source4/torture/rpc/dssync.c
@@ -711,7 +711,7 @@ static bool test_FetchData(struct torture_context *tctx, struct DsSyncTest *ctx)
test_analyse_objects(tctx, ctx, &gensec_skey, ctr1->first_object);
- if (ctr1->new_highwatermark.tmp_highest_usn > ctr1->new_highwatermark.highest_usn) {
+ if (ctr1->more_data) {
r.in.req.req5.highwatermark = ctr1->new_highwatermark;
continue;
}
@@ -739,7 +739,7 @@ static bool test_FetchData(struct torture_context *tctx, struct DsSyncTest *ctx)
test_analyse_objects(tctx, ctx, &gensec_skey, ctr6->first_object);
- if (ctr6->new_highwatermark.tmp_highest_usn > ctr6->new_highwatermark.highest_usn) {
+ if (ctr6->more_data) {
r.in.req.req8.highwatermark = ctr6->new_highwatermark;
continue;
}