From 1caa8b06f781758943e31c367e70014de1d04380 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 9 Jul 2010 16:27:34 +0200 Subject: s4:drepl_notify: hide some bugs from the make test output It's useless to get messages like this every few seconds: dreplsrv_notify: Failed to send DsReplicaSync to edbf4745-2966-49a7-8653-99200f1c9430._msdcs.samba2003.example.com for CN=Configuration,DC=samba2003,DC=example,DC=com - NT_STATUS_OBJECT_NAME_NOT_FOUND : WERR_BADFILE We have a non bug regarding non-linked DN attributes and changes of the target DN. metze --- source4/dsdb/repl/drepl_notify.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source4/dsdb/repl/drepl_notify.c b/source4/dsdb/repl/drepl_notify.c index 8a39745a4e..6b8190173e 100644 --- a/source4/dsdb/repl/drepl_notify.c +++ b/source4/dsdb/repl/drepl_notify.c @@ -197,7 +197,18 @@ static void dreplsrv_notify_op_callback(struct tevent_req *subreq) unsigned int msg_debug_level = 0; werr = ntstatus_to_werror(status); if (W_ERROR_EQUAL(werr, WERR_BADFILE)) { - msg_debug_level = 1; + /* + * TODO: + * + * we should better fix the bug regarding + * non-linked attribute handling, instead + * of just hiding the failures. + * + * we should also remove the dc from our repsTo + * if it failed to often, instead of retrying + * every few seconds + */ + msg_debug_level = 2; } DEBUG(msg_debug_level, -- cgit