From: Sangdi Xu Date: Wed, 23 Sep 2015 11:31:32 +0000 (+0800) Subject: rgw: fix swift API returning incorrect account metadata X-Git-Tag: v0.94.6~49^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b62cac6c345df53bbda1c42a5336cffc8f0f9652;p=ceph.git rgw: fix swift API returning incorrect account metadata Fixes: #13140 Fix the bug that swift account stat command returns doubled object count and bytes used Signed-off-by: Sangdi Xu (cherry picked from commit 66d19c78ba75b79190c81c95f94e7ef3084fda9e) --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 4301bdde8b4c7..b1e9a1c1e2641 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -1059,7 +1059,7 @@ void RGWStatAccount::execute() do { RGWUserBuckets buckets; - ret = rgw_read_user_buckets(store, s->user.user_id, buckets, marker, max_buckets, true); + ret = rgw_read_user_buckets(store, s->user.user_id, buckets, marker, max_buckets, false); if (ret < 0) { /* hmm.. something wrong here.. the user was authenticated, so it should exist */