Fixes the following error when exporting a pool that contains objects
with a locator key set:
error getting xattr set [object name]: (2) No such file or directory
error from export: (2) No such file or directory
Fixes: https://tracker.ceph.com/issues/46824
Signed-off-by: Iain Buclaw <iain.buclaw@dunnhumby.com>
const uint32_t op_size = 4096 * 1024;
uint64_t offset = 0;
io_ctx->set_namespace(i->get_nspace());
+ io_ctx->locator_set_key(i->get_locator());
while (true) {
bufferlist outdata;
r = io_ctx->read(oid, outdata, op_size, offset);
}
ioctx.set_namespace(ob.hoid.hobj.get_namespace());
+ ioctx.locator_set_key(ob.hoid.hobj.get_key());
string msg("Write");
skipping = false;