summaryrefslogtreecommitdiff
path: root/source4/dsdb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-09 13:11:27 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-09 13:11:27 +1100
commit349f7ba09c4cda14eea4df69bd6dcb082fc23c8d (patch)
tree9ff4e1dd1a914053aada408d6cb5c96f7bf4612c /source4/dsdb/common
parentb0090d01e061220d9b70a14e5a88b683949fe6a5 (diff)
downloadsamba-349f7ba09c4cda14eea4df69bd6dcb082fc23c8d.tar.gz
samba-349f7ba09c4cda14eea4df69bd6dcb082fc23c8d.tar.bz2
samba-349f7ba09c4cda14eea4df69bd6dcb082fc23c8d.zip
s4-drs: added filtering by udv in getncchanges
When a client supplied an uptodateness_vector, we can use it to filter what objects we return. This greatly reduces the amount of replication traffic between DCs.
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r--source4/dsdb/common/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 70750ca141..632025da54 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -2810,6 +2810,12 @@ int drsuapi_DsReplicaCursor2_compare(const struct drsuapi_DsReplicaCursor2 *c1,
return GUID_compare(&c1->source_dsa_invocation_id, &c2->source_dsa_invocation_id);
}
+int drsuapi_DsReplicaCursor_compare(const struct drsuapi_DsReplicaCursor *c1,
+ const struct drsuapi_DsReplicaCursor *c2)
+{
+ return GUID_compare(&c1->source_dsa_invocation_id, &c2->source_dsa_invocation_id);
+}
+
/*
see if we are a RODC