]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix: S3 API KeyCount incorrect return. 37849/head
author胡玮文 <huww98@outlook.com>
Thu, 24 Sep 2020 15:34:43 +0000 (23:34 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 27 Oct 2020 09:06:49 +0000 (10:06 +0100)
commitd20ebfb1e69fbaf099fb04995f746bf7437161f6
treee502744aa549efebc55cb931c39750d3c465074b
parentb6d6e254979727c5d5ae5386f42bf220a508269a
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