]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: return common_prefixes in lexical order 38828/head
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 8 Jan 2021 18:23:56 +0000 (13:23 -0500)
committerNathan Cutler <ncutler@suse.com>
Fri, 8 Jan 2021 18:27:42 +0000 (19:27 +0100)
commitec78e80a2125c25144579dc48a1e6c0ab1666b76
tree26400c087d05dd857c2040d93a2486b0b9052c9e
parent293d1d70dceb8964adcf9863aed4955ba8285b11
rgw_file: return common_prefixes in lexical order

Since inception RGWReaddirRequest has sent all leaf objects first
(in lexical order), then common_prefixes (in lexical order). In
hindsight, an overall listing could trivially be returned out of
lexical order, which can cause continued listing of large, mixed
directories to fail.

RCA by Dan Gryniewicz.

Fixes: https://tracker.ceph.com/issues/48410
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit e561e98e5cca2678854e01c990f95e474022b7ed)

Conflicts:
        src/rgw/rgw_file.h
src/rgw/rgw_file.h