From bced61c6d8d63ea691f00adcdc7c48d6df1cd9e5 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Tue, 22 May 2018 08:42:48 +0300 Subject: [PATCH] MXS-1875 Log in correct branch Also use different error message to make it plain where it is logged. --- server/core/dcb.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/core/dcb.cc b/server/core/dcb.cc index d53d6180e..ed240c088 100644 --- a/server/core/dcb.cc +++ b/server/core/dcb.cc @@ -3434,7 +3434,7 @@ static bool dcb_add_to_worker(int worker_id, DCB* dcb, uint32_t events) if (!worker->post_message(MXS_WORKER_MSG_CALL, arg1, arg2)) { - MXS_ERROR("Could not post DCB to worker."); + MXS_ERROR("Could not post listening DCB for book-keeping to worker."); } } @@ -3470,9 +3470,12 @@ static bool dcb_add_to_worker(int worker_id, DCB* dcb, uint32_t events) if (worker->post(std::auto_ptr(task), mxs::Worker::EXECUTE_QUEUED)) { - MXS_ERROR("Could not post DCB to worker."); rv = true; } + else + { + MXS_ERROR("Could not post task to add DCB to worker."); + } } else {