From 7c5e2db775d2e9d5189a8e9b0e7b14dc0d1bd55a Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Mon, 20 Jul 2020 10:19:54 +0200 Subject: [PATCH] osd/PrimaryLogPG: fix up replica read log messages Add missing spaces and don't repeat oid twice. Signed-off-by: Ilya Dryomov --- src/osd/PrimaryLogPG.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index ce2227cf46acf..5f857bbe65ee8 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -2137,15 +2137,14 @@ void PrimaryLogPG::do_op(OpRequestRef& op) if (!is_primary()) { if (!recovery_state.can_serve_replica_read(oid)) { - dout(20) << __func__ << ": oid " << oid - << " unstable write on replica, bouncing to primary." + dout(20) << __func__ + << ": unstable write on replica, bouncing to primary " << *m << dendl; osd->reply_op_error(op, -EAGAIN); return; - } else { - dout(20) << __func__ << ": serving replica read on oid" << oid - << dendl; } + dout(20) << __func__ << ": serving replica read on oid " << oid + << dendl; } int r = find_object_context( -- 2.39.5