summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2011-01-21 02:38:25 +0200
committerKamen Mazdrashki <kamenim@samba.org>2011-01-22 12:35:22 +0200
commit0aa118f22bb2e810e5c530c743c48dcb7bde92cc (patch)
treec4f6f15b5949fb65066829f39daa9f24e597a52b /source4
parent6ee39a2f42e83768f99e742f76dd4a1b785fcdae (diff)
downloadsamba-0aa118f22bb2e810e5c530c743c48dcb7bde92cc.tar.gz
samba-0aa118f22bb2e810e5c530c743c48dcb7bde92cc.tar.bz2
samba-0aa118f22bb2e810e5c530c743c48dcb7bde92cc.zip
s4-repl_meta_data: We should not use USNs in metadata comparisons
If object is changed by same DC, then version should be incremented
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index 2cc52b9918..d254694bbf 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -2946,16 +2946,9 @@ static bool replmd_update_is_newer(const struct GUID *current_invocation_id,
const struct GUID *update_invocation_id,
uint32_t current_version,
uint32_t update_version,
- uint32_t current_usn,
- uint32_t update_usn,
NTTIME current_change_time,
NTTIME update_change_time)
{
- if (GUID_compare(update_invocation_id, current_invocation_id) == 0) {
- if (update_usn != current_usn) {
- return update_usn >= current_usn;
- }
- }
if (update_version != current_version) {
return update_version >= current_version;
}
@@ -2972,8 +2965,6 @@ static bool replmd_replPropertyMetaData1_is_newer(struct replPropertyMetaData1 *
&new_m->originating_invocation_id,
cur_m->version,
new_m->version,
- cur_m->originating_usn,
- new_m->originating_usn,
cur_m->originating_change_time,
new_m->originating_change_time);
}
@@ -4004,8 +3995,6 @@ linked_attributes[0]:
&la->meta_data.originating_invocation_id,
version,
la->meta_data.version,
- originating_usn,
- la->meta_data.originating_usn,
change_time,
la->meta_data.originating_change_time)) {
DEBUG(3,("Discarding older DRS linked attribute update to %s on %s from %s\n",