From c59393f8dd8402fe973581d9222ec144f9c2aa8f Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Thu, 13 Dec 2018 15:57:40 +0100 Subject: [PATCH] rgw: sync module: avoid printing attrs of objects in log Since attrs are verbose and not necessarily needed as a debug info (as they can be obtained from the required object itself) avoid logging them. Also additionally removed another place where such a log is done by the ES sync module Fixes: http://tracker.ceph.com/issues/37646 Signed-off-by: Abhishek Lekshmanan (cherry picked from commit 8f37b70630ceb62aff4019e9ad2508977590a873) --- src/rgw/rgw_sync_module.cc | 4 ++-- src/rgw/rgw_sync_module_es.cc | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/rgw/rgw_sync_module.cc b/src/rgw/rgw_sync_module.cc index 196f98541e94a..82b6fe06219f1 100644 --- a/src/rgw/rgw_sync_module.cc +++ b/src/rgw/rgw_sync_module.cc @@ -36,8 +36,8 @@ int RGWCallStatRemoteObjCR::operate() { return set_cr_error(retcode); } ldout(sync_env->cct, 20) << "stat of remote obj: z=" << sync_env->source_zone - << " b=" << bucket_info.bucket << " k=" << key << " size=" << size << " mtime=" << mtime - << " attrs=" << attrs << " headers=" << headers << dendl; + << " b=" << bucket_info.bucket << " k=" << key + << " size=" << size << " mtime=" << mtime << dendl; yield { RGWStatRemoteObjCBCR *cb = allocate_callback(); if (cb) { diff --git a/src/rgw/rgw_sync_module_es.cc b/src/rgw/rgw_sync_module_es.cc index 6549a18fd8f09..14eb5d724e430 100644 --- a/src/rgw/rgw_sync_module_es.cc +++ b/src/rgw/rgw_sync_module_es.cc @@ -478,8 +478,9 @@ public: int operate() override { reenter(this) { ldout(sync_env->cct, 10) << ": stat of remote obj: z=" << sync_env->source_zone - << " b=" << bucket_info.bucket << " k=" << key << " size=" << size << " mtime=" << mtime - << " attrs=" << attrs << dendl; + << " b=" << bucket_info.bucket << " k=" << key + << " size=" << size << " mtime=" << mtime << dendl; + yield { string path = conf->get_obj_path(bucket_info, key); es_obj_metadata doc(sync_env->cct, conf, bucket_info, key, mtime, size, attrs, versioned_epoch); -- 2.39.5