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 <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Yehuda Sadeh 2013-08-26 11:16:08 -07:00 committed by Sage Weil
parent 409aba6ff5
commit 055e31359a

View File

@ -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;