]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix swift API returning incorrect account metadata 6512/head
authorSangdi Xu <xu.sangdi@h3c.com>
Wed, 23 Sep 2015 11:31:32 +0000 (19:31 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 9 Nov 2015 20:49:54 +0000 (21:49 +0100)
Fixes: #13140
Fix the bug that swift account stat command returns doubled object count and bytes used

Signed-off-by: Sangdi Xu <xu.sangdi@h3c.com>
(cherry picked from commit 66d19c78ba75b79190c81c95f94e7ef3084fda9e)

src/rgw/rgw_op.cc

index 4301bdde8b4c78829330d39114bdf1a01e5f69d9..b1e9a1c1e264183c23e4fd522f72408c0912e1cf 100644 (file)
@@ -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 */