Actions
Bug #11285
closedRGW Swift API: showing stats in account listing does not work even when the "stats" parameter is provided
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
RGW via civetweb frontend:
$ curl -i http://localhost:8000/swift/v1/?format=json\&stats=true -X GET -H "X-Auth-Token: $token"
HTTP/1.1 200 OK
X-Timestamp: 1427809455.18849
X-Account-Container-Count: 0
X-Account-Object-Count: 0
X-Account-Bytes-Used: 0
X-Account-Bytes-Used-Actual: 0
Content-type: application/json; charset=utf-8
Content-Length: 189
Date: Tue, 31 Mar 2015 13:44:15 GMT[{"name":"aaaa10","count":0,"bytes":0},{"name":"cont","count":8,"bytes":0},{"name":"cont10","count":0,"bytes":0},{"name":"cont12","count":0,"bytes":0},{"name":"cont15","count":2,"bytes":4}]
The issue occurs probably because send_response_begin() in RGWListBuckets::execute() is being called before collecting the statistics.
Actions