Currently if we fail to read a SystemMetaObj we try to log the
MetaObject id, however this will not be set mostly as read_id has
failed, so we end up logging an empty id, changing this to log
the object name instead
Fixes: http://tracker.ceph.com/issues/15776
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
} 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;
}
}
}