From e24262de88380aab25c6b4c21768c0d209e5168c Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 26 Aug 2013 11:16:08 -0700 Subject: rgw: quiet down warning message Fixes: #6123 We don't want to know about failing to read region map info if it's not found, only if failed on some other error. In any case it's just a warning. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_rados.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 03cc1ebfdb3..bffa2d32885 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -893,7 +893,9 @@ int RGWRados::init_complete() ret = region_map.read(cct, this); if (ret < 0) { - ldout(cct, 0) << "WARNING: cannot read region map" << dendl; + if (ret != -ENOENT) { + ldout(cct, 0) << "WARNING: cannot read region map" << dendl; + } ret = region_map.update(region); if (ret < 0) { ldout(cct, 0) << "ERROR: failed to update regionmap with local region info" << dendl; -- cgit v1.2.1