]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix: S3 API KeyCount incorrect return. 37810/head
author胡玮文 <huww98@outlook.com>
Thu, 24 Sep 2020 15:34:43 +0000 (23:34 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 26 Oct 2020 20:16:29 +0000 (21:16 +0100)
commita1afbc770cf73ce7f99f8a5d3ad935d12a908bcb
treee6d0d487660f7cd370334a069ece2e669dee9f50
parenta2010cbc82ce53c909c3d230726d633f552e43a1
rgw: fix: S3 API KeyCount incorrect return.

KeyCount should return object count + common prefix count.
see S3 example: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html#API_ListObjectsV2_Example_5

Related: https://github.com/docker/distribution/issues/3200

Signed-off-by: 胡玮文 <huww98@outlook.com>
(cherry picked from commit f96a6fdad16da2a7093f538ee577248dfbc65ca1)
src/rgw/rgw_rest_s3.cc