From aee1d643be71071df488fbe790a6715e93aa4385 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Mon, 9 May 2016 11:41:19 +0200 Subject: [PATCH] rgw: log name instead of id for SystemMetaObj on failure Currently if we fail to read a SystemMetaObj we try to log the MetaObject id, however this will not be set mostly as read_id has failed, so we end up logging an empty id, changing this to log the object name instead Fixes: http://tracker.ceph.com/issues/15776 Signed-off-by: Abhishek Lekshmanan --- src/rgw/rgw_rados.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 1d4a846db33f..ac003646a17b 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -383,8 +383,8 @@ int RGWSystemMetaObj::init(CephContext *_cct, RGWRados *_store, bool setup_obj, } else if (!old_format) { r = read_id(name, id); if (r < 0) { - ldout(cct, 0) << "error in read_id for id " << id << " : " << cpp_strerror(-r) << dendl; - return r; + ldout(cct, 0) << "error in read_id for object name: " << name << " : " << cpp_strerror(-r) << dendl; + return r; } } } -- 2.47.3