]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix swift API returning incorrect account metadata 6047/head
authorSangdi Xu <xu.sangdi@h3c.com>
Wed, 23 Sep 2015 11:31:32 +0000 (19:31 +0800)
committerSangdi Xu <xu.sangdi@h3c.com>
Wed, 23 Sep 2015 11:40:47 +0000 (19:40 +0800)
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>
src/rgw/rgw_op.cc

index ff84aba0b064e14812225a03918ad5fea5a60685..0a8b1cfa465fc7b4657a09dc2ad184ce71d0b72f 100644 (file)
@@ -1138,7 +1138,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 */