From: Yehuda Sadeh Date: Mon, 26 Aug 2013 18:16:08 +0000 (-0700) Subject: rgw: quiet down warning message X-Git-Tag: v0.67.5~20^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a4dc2694db6a7e45109f111dcdfd077da67b6030;p=ceph.git 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 Reviewed-by: Sage Weil (cherry picked from commit 055e31359ac977943f014270cc56a1b7786abee3) --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index eb6efa25235d..ed2554242d89 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -897,7 +897,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;