Merge pull request #8994 from theanalyst/fix/15776

rgw: log name instead of id for SystemMetaObj on failure
This commit is contained in:
Orit Wasserman 2016-05-09 16:36:43 +02:00
commit 367bd0aec9

View File

@ -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;
}
}
}
@ -3450,7 +3450,7 @@ int RGWRados::init_zg_from_period(bool *initialized)
return 0;
}
if (ret < 0) {
ldout(cct, 0) << "failed reading zonegroup info: " << " " << cpp_strerror(-ret) << dendl;
ldout(cct, 0) << "failed reading zonegroup info: " << cpp_strerror(-ret) << dendl;
return ret;
}
ldout(cct, 20) << "period zonegroup name " << zonegroup.get_name() << dendl;