const rgw_user& user_id,
RGWUserBuckets& buckets,
const string& marker,
+ const string& end_marker,
uint64_t max,
bool need_stats,
- uint64_t default_amount,
- string end_marker)
+ uint64_t default_amount)
{
int ret;
buckets.clear();
size_t max_entries = cct->_conf->rgw_list_buckets_max_chunk;
do {
- int ret = rgw_read_user_buckets(store, user_id, user_buckets, marker, max_entries, false);
+ int ret = rgw_read_user_buckets(store, user_id, user_buckets,
+ marker, string(), max_entries, false);
if (ret < 0) {
ldout(store->ctx(), 0) << "failed to read user buckets: " << cpp_strerror(-ret) << dendl;
return;
bool done;
do {
- ret = rgw_read_user_buckets(store, user_id, buckets, marker, max_entries, false);
+ ret = rgw_read_user_buckets(store, user_id, buckets,
+ marker, string(), max_entries, false);
if (ret < 0)
return ret;
const rgw_user& user_id,
RGWUserBuckets& buckets,
const string& marker,
+ const string& end_marker,
uint64_t max,
bool need_stats,
- uint64_t default_amount = 1000,
- string end_marker = string());
+ uint64_t default_amount = 1000);
extern int rgw_link_bucket(RGWRados *store, const rgw_user& user_id, rgw_bucket& bucket, time_t creation_time, bool update_entrypoint = true);
extern int rgw_unlink_bucket(RGWRados *store, const rgw_user& user_id,
}
ret = rgw_read_user_buckets(store, s->user.user_id, buckets,
- marker, read_count, should_get_stats(), 0, end_marker);
+ marker, end_marker, read_count, should_get_stats(), 0);
if (ret < 0) {
/* hmm.. something wrong here.. the user was authenticated, so it
do {
RGWUserBuckets buckets;
- ret = rgw_read_user_buckets(store, s->user.user_id, buckets, marker, max_buckets, false);
+ ret = rgw_read_user_buckets(store, s->user.user_id, buckets,
+ marker, string(), max_buckets, false);
if (ret < 0) {
/* hmm.. something wrong here.. the user was authenticated, so it
should exist */
if (s->user.max_buckets) {
RGWUserBuckets buckets;
string marker;
- int ret = rgw_read_user_buckets(store, s->user.user_id, buckets, marker, s->user.max_buckets, false);
+ int ret = rgw_read_user_buckets(store, s->user.user_id, buckets,
+ marker, string(), s->user.max_buckets, false);
if (ret < 0)
return ret;
do {
RGWUserBuckets user_buckets;
- ret = rgw_read_user_buckets(store, user_id, user_buckets, marker, max_entries, false);
+ ret = rgw_read_user_buckets(store, user_id, user_buckets,
+ marker, string(), max_entries, false);
if (ret < 0) {
ldout(cct, 0) << "failed to read user buckets: ret=" << ret << dendl;
return ret;
do {
RGWUserBuckets user_buckets;
- ret = rgw_read_user_buckets(store, info.user_id, user_buckets, marker, max_buckets, false);
+ ret = rgw_read_user_buckets(store, info.user_id, user_buckets,
+ marker, string(), max_buckets, false);
if (ret < 0)
return ret;
size_t max_buckets = cct->_conf->rgw_list_buckets_max_chunk;
do {
RGWUserBuckets buckets;
- ret = rgw_read_user_buckets(store, uid, buckets, marker, max_buckets, false);
+ ret = rgw_read_user_buckets(store, uid, buckets,
+ marker, string(), max_buckets, false);
if (ret < 0) {
set_err_msg(err_msg, "unable to read user bucket info");
return ret;
CephContext *cct = store->ctx();
size_t max_buckets = cct->_conf->rgw_list_buckets_max_chunk;
do {
- ret = rgw_read_user_buckets(store, user_id, buckets, marker, max_buckets, false);
+ ret = rgw_read_user_buckets(store, user_id, buckets,
+ marker, string(), max_buckets, false);
if (ret < 0) {
set_err_msg(err_msg, "could not get buckets for uid: " + user_id.to_str());
return ret;