From 66d19c78ba75b79190c81c95f94e7ef3084fda9e Mon Sep 17 00:00:00 2001 From: Sangdi Xu Date: Wed, 23 Sep 2015 19:31:32 +0800 Subject: [PATCH] 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 --- src/rgw/rgw_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index ff84aba0b064..0a8b1cfa465f 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -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 */ -- 2.47.3