if (ret < 0) {
/* hmm.. something wrong here.. the user was authenticated, so it
- should exist, just try to recreate */
+ should exist */
ldout(s->cct, 10) << "WARNING: failed on rgw_get_user_buckets uid=" << s->user.user_id << dendl;
-
- /*
-
- on a second thought, this is probably a bug and we should fail
-
- rgw_put_user_buckets(s->user.user_id, buckets);
- ret = 0;
-
- */
break;
}
map<string, RGWBucketEnt>& m = buckets.get_buckets();
ret = rgw_read_user_buckets(store, s->user.user_id, buckets, marker, max_buckets, true);
if (ret < 0) {
/* hmm.. something wrong here.. the user was authenticated, so it
- should exist, just try to recreate */
+ should exist */
ldout(s->cct, 10) << "WARNING: failed on rgw_get_user_buckets uid=" << s->user.user_id << dendl;
-
- /*
-
- on a second thought, this is probably a bug and we should fail
-
- rgw_put_user_buckets(s->user.user_id, buckets);
- ret = 0;
-
- */
-
break;
} else {
map<string, RGWBucketEnt>& m = buckets.get_buckets();
virtual const char *name() { return "get_obj"; }
};
+#define RGW_LIST_BUCKETS_LIMIT_MAX 10000
+
class RGWListBuckets : public RGWOp {
protected:
int ret;
public:
RGWListBuckets() : ret(0), sent_data(false) {
- limit = limit_max = 10000;
+ limit = limit_max = RGW_LIST_BUCKETS_LIMIT_MAX;
}
int verify_permission();