summaryrefslogtreecommitdiff
path: root/source4/dsdb
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/dsdb
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/dsdb')
-rw-r--r--source4/dsdb/repl/drepl_out_helpers.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source4/dsdb/repl/drepl_out_helpers.c b/source4/dsdb/repl/drepl_out_helpers.c
index 694d89dfe3..281e5691e2 100644
--- a/source4/dsdb/repl/drepl_out_helpers.c
+++ b/source4/dsdb/repl/drepl_out_helpers.c
@@ -365,6 +365,7 @@ static void dreplsrv_op_pull_source_apply_changes_send(struct dreplsrv_op_pull_s
linked_attributes = NULL;
rf1.highwatermark = ctr1->new_highwatermark;
uptodateness_vector = NULL; /* TODO: map it */
+ more_data = ctr1->more_data;
break;
case 6:
mapping_ctr = &ctr6->mapping_ctr;
@@ -374,6 +375,7 @@ static void dreplsrv_op_pull_source_apply_changes_send(struct dreplsrv_op_pull_s
linked_attributes = ctr6->linked_attributes;
rf1.highwatermark = ctr6->new_highwatermark;
uptodateness_vector = ctr6->uptodateness_vector;
+ more_data = ctr6->more_data;
break;
default:
composite_error(c, werror_to_ntstatus(WERR_BAD_NET_RESP));
@@ -404,14 +406,6 @@ static void dreplsrv_op_pull_source_apply_changes_send(struct dreplsrv_op_pull_s
* TODO: update our uptodatevector!
*/
- /*
- * if the tmp_highest_usn is higher than highest_usn
- * there's more to pull from this source_dsa
- */
- if (rf1.highwatermark.tmp_highest_usn > rf1.highwatermark.highest_usn) {
- more_data = true;
- }
-
if (more_data) {
dreplsrv_op_pull_source_get_changes_send(st);
return;