From: Andrew Bartlett Date: Mon, 21 Mar 2016 02:51:12 +0000 (+1300) Subject: repl: Do not report all replication failures at level 0 X-Git-Tag: tdb-1.3.10~968 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4271692d865029ba39ebcef334cde4342bb3f72e;p=thirdparty%2Fsamba.git repl: Do not report all replication failures at level 0 Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index d2acff30b5b..674074c350f 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -836,8 +836,13 @@ WERROR dsdb_replicated_objects_commit(struct ldb_context *ldb, dsdb_reference_schema(ldb, cur_schema, false); } - DEBUG(0,("Failed to apply records: %s: %s\n", - ldb_errstring(ldb), ldb_strerror(ret))); + if (!W_ERROR_EQUAL(objects->error, WERR_DS_DRA_MISSING_PARENT)) { + DEBUG(1,("Failed to apply records: %s: %s\n", + ldb_errstring(ldb), ldb_strerror(ret))); + } else { + DEBUG(3,("Missing parent while attempting to apply records: %s\n", + ldb_errstring(ldb))); + } ldb_transaction_cancel(ldb); TALLOC_FREE(tmp_ctx);