]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw_file: readdir: do not construct markers w/leading '/'
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 14 Aug 2019 18:11:16 +0000 (14:11 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 14 Aug 2019 18:47:20 +0000 (14:47 -0400)
commitca546fc53e5111052cbd7da35cb3105dde9b8bd1
tree0bf6fc32c4163398efddfb15bac7cf329c6b2fce
parent6f3c0c9641589332894c496fc0d7c7b41fca8ece
rgw_file: readdir: do not construct markers w/leading '/'

This case arises when listing the top directory of a bucket, and,
with proper continued enumeration, would generate a non-terminating
loop if a directory contained names which sort lexically before '/'.

Fixes: https://tracker.ceph.com/issues/41252
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h