Some callers (ceph-objectstore-tool) instantiate SnapMapper with a bogus
pool id (0) and want to use it to adjust mappings. We have the hobj
available, so use its pool member instead.
Signed-off-by: Sage Weil <sage@redhat.com>
string SnapMapper::to_raw_key(
const pair<snapid_t, hobject_t> &in)
{
- return get_prefix(pool, in.first) + shard_prefix + in.second.to_str();
+ return get_prefix(in.second.pool, in.first) + shard_prefix + in.second.to_str();
}
pair<string, bufferlist> SnapMapper::to_raw(