]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: return common_prefixes in lexical order 38369/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 1 Dec 2020 12:53:56 +0000 (07:53 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 1 Dec 2020 13:30:04 +0000 (08:30 -0500)
commite561e98e5cca2678854e01c990f95e474022b7ed
tree955610518c304d64758c8a08ab91f7a5d602448b
parent5c9fbc794811a1de66ee254a1f9078372839e4f3
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>
src/rgw/rgw_file.h