From bae33f97c05932c95225beb2dd2b6f76c1970bef Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Nov 30 2018 15:52:56 +0000 Subject: Ticket 50062 - Replace error by warning in the state machine defined in repl5_inc_run Description: Replace error log severity message from ERR to WARNING https://pagure.io/389-ds-base/issue/50062 Reviewed by: mreynolds(one line commit rule) --- diff --git a/ldap/servers/plugins/replication/repl5_inc_protocol.c b/ldap/servers/plugins/replication/repl5_inc_protocol.c index 5cd4941..2aefb79 100644 --- a/ldap/servers/plugins/replication/repl5_inc_protocol.c +++ b/ldap/servers/plugins/replication/repl5_inc_protocol.c @@ -717,7 +717,7 @@ repl5_inc_run(Private_Repl_Protocol *prp) } else if ((e1 = event_occurred(prp, EVENT_WINDOW_CLOSED)) || event_occurred(prp, EVENT_BACKOFF_EXPIRED)) { /* this events - should not occur - log a warning and go to sleep */ - slapi_log_err(SLAPI_LOG_ERR, repl_plugin_name, + slapi_log_err(SLAPI_LOG_WARNING, repl_plugin_name, "repl5_inc_run - %s: " "Event %s should not occur in state %s; going to sleep\n", agmt_get_long_name(prp->agmt), e1 ? event2name(EVENT_WINDOW_CLOSED) : event2name(EVENT_BACKOFF_EXPIRED), state2name(current_state)); diff --git a/ldap/servers/plugins/replication/windows_inc_protocol.c b/ldap/servers/plugins/replication/windows_inc_protocol.c index 871a768..853467e 100644 --- a/ldap/servers/plugins/replication/windows_inc_protocol.c +++ b/ldap/servers/plugins/replication/windows_inc_protocol.c @@ -364,7 +364,7 @@ windows_inc_run(Private_Repl_Protocol *prp) } else if ((e1 = event_occurred(prp, EVENT_WINDOW_CLOSED)) || event_occurred(prp, EVENT_BACKOFF_EXPIRED)) { /* this events - should not occur - log a warning and go to sleep */ - slapi_log_err(SLAPI_LOG_ERR, windows_repl_plugin_name, + slapi_log_err(SLAPI_LOG_WARNING, windows_repl_plugin_name, "windows_inc_run - %s: " "Event %s should not occur in state %s; going to sleep\n", agmt_get_long_name(prp->agmt),