summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2011-01-21 22:51:05 +0200
committerKamen Mazdrashki <kamenim@samba.org>2011-01-22 12:22:30 +0100
commit585e9a0ab0e0673f1222a4e26d94c90fb6e88331 (patch)
treef145cbfb9ff408c99921ac0da46f906061345fea
parent0ce93ad2bc91fd7cbe2f71d00a323a827b9457b1 (diff)
downloadsamba-585e9a0ab0e0673f1222a4e26d94c90fb6e88331.tar.gz
samba-585e9a0ab0e0673f1222a4e26d94c90fb6e88331.tar.bz2
samba-585e9a0ab0e0673f1222a4e26d94c90fb6e88331.zip
s4-repl_meta_data: replmd_update_is_newer() should not return true if metadata stamps are equal
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Sat Jan 22 12:22:30 CET 2011 on sn-devel-104
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index bdd87ee494..87327e5760 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -2951,12 +2951,12 @@ static bool replmd_update_is_newer(const struct GUID *current_invocation_id,
NTTIME update_change_time)
{
if (update_version != current_version) {
- return update_version >= current_version;
+ return update_version > current_version;
}
if (update_change_time != current_change_time) {
- return update_change_time >= current_change_time;
+ return update_change_time > current_change_time;
}
- return GUID_compare(update_invocation_id, current_invocation_id) >= 0;
+ return GUID_compare(update_invocation_id, current_invocation_id) > 0;
}
static bool replmd_replPropertyMetaData1_is_newer(struct replPropertyMetaData1 *cur_m,