r6206: go baack 10 revisions to get DatabaseDeltas, this shows that the bdc only
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Apr 2005 06:55:10 +0000 (06:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:25 +0000 (13:11 -0500)
need one call to get in sync again (except something like NT_STATUS_MORE_ENTRIES is returned)

also the pdc only need to know the current state values

metze
(This used to be commit f4e12b38937bd8c16fd1a8b13401a65565d4bd00)

source4/torture/rpc/samsync.c

index 96b5cce39fb29800f01c25931171f24f868da776..0168a90f799fc2a34eaaa4ed0cb7b70a07b57890 100644 (file)
@@ -1219,7 +1219,11 @@ static BOOL test_DatabaseDeltas(struct samsync_state *samsync_state, TALLOC_CTX
 
                if (r.in.sequence_num == 0) continue;
 
-               r.in.sequence_num -= 1;
+               /* this shows that the bdc doesn't need to do a single call for
+                * each seqnumber, and the pdc doesn't need to know about old values
+                * -- metze
+                */
+               r.in.sequence_num -= 10;
 
 
                printf("Testing DatabaseDeltas of id %d at %llu\n",