repl_metadata: Avoid silent skipping an object during DRS (due to RODC rename collisions)
authorGarming Sam <garming@catalyst.net.nz>
Wed, 14 Feb 2018 00:32:33 +0000 (13:32 +1300)
committerGarming Sam <garming@samba.org>
Thu, 15 Feb 2018 09:18:42 +0000 (10:18 +0100)
No error code was being set in this case, and so, we would commit the
HWM and UDV without actually having all the updates.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13269

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Thu Feb 15 10:18:42 CET 2018 on sn-devel-144

selftest/knownfail.d/rodc_repl [deleted file]
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

diff --git a/selftest/knownfail.d/rodc_repl b/selftest/knownfail.d/rodc_repl
deleted file mode 100644 (file)
index bd5c04e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-^samba4.drs.replica_sync_rodc.python.rodc..replica_sync_rodc.DrsReplicaSyncTestCase.test_ReplConflictsRODCRename.rodc
index 84d898af4833bf605ca2262aaa29154163c756b2..ead0bd9235be7b986e11b873e53719fb84b5d936 100644 (file)
@@ -5571,6 +5571,7 @@ static int replmd_replicated_handle_rename(struct replmd_replicated_request *ar,
                                       "Conflict adding object '%s' from incoming replication but we are read only for the partition.  \n"
                                       " - We must fail the operation until a master for this partition resolves the conflict",
                                       ldb_dn_get_linearized(conflict_dn));
+               ret = LDB_ERR_OPERATIONS_ERROR;
                goto failed;
        }