}
int cls_rgw_reshard_list(librados::IoCtx& io_ctx, const string& oid, string& marker, uint32_t max,
- list<cls_rgw_reshard_entry>& entries, bool& is_truncated)
+ list<cls_rgw_reshard_entry>& entries, bool* is_truncated)
{
bufferlist in, out;
struct cls_rgw_reshard_list_op call;
}
entries.swap(op_ret.entries);
- is_truncated = op_ret.is_truncated;
+ *is_truncated = op_ret.is_truncated;
return 0;
}
/* resharding */
void cls_rgw_reshard_add(librados::ObjectWriteOperation& op, const cls_rgw_reshard_entry& entry);
int cls_rgw_reshard_list(librados::IoCtx& io_ctx, const string& oid, string& marker, uint32_t max,
- list<cls_rgw_reshard_entry>& entries, bool& is_truncated);
+ list<cls_rgw_reshard_entry>& entries, bool* is_truncated);
int cls_rgw_reshard_get(librados::IoCtx& io_ctx, const string& oid, cls_rgw_reshard_entry& entry);
int cls_rgw_reshard_get_head(librados::IoCtx& io_ctx, const string& oid, cls_rgw_reshard_entry& entry);
void cls_rgw_reshard_remove(librados::ObjectWriteOperation& op, const cls_rgw_reshard_entry& entry);
if (ret < 0)
return ret;
- ret = cls_rgw_reshard_list(io_ctx, reshard_oid, marker, max, entries, is_truncated);
+ ret = cls_rgw_reshard_list(io_ctx, reshard_oid, marker, max, entries, &is_truncated);
l.unlock(&io_ctx, reshard_oid);
return ret;