* s3: -s3.listRecursiveFromStore, on by default
Lets an operator keep recursive listings on the directory walk.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
* s3: list without a delimiter from one range of the filer store
A bucket that never had versioning is listed with ListEntriesRecursive:
one read of the bucket's path range per page instead of one directory
listing per directory. A folder object's "<dir>/" key waits for its place in
key order, and the folder objects whose rows sort before the range (the one
the prefix names, those the marker ends inside of) are looked up. .uploads
is skipped; a .versions folder hands the page to the walk, as does a filer
that answers Unimplemented, which is then not asked again for a minute.
The test pages through both ways over the same tree, for prefixes, markers
and page sizes, and expects the same keys, sizes, ETags and markers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
* test/postgres_flat: a range-read gateway lists what the walking one does
A second S3 gateway with -listRecursiveFromStore=false runs on the same
filer. ListObjectsV2 and V1 pages agree for prefixes, markers and page sizes
over folder objects, a prefix object, an unfinished upload and +/-/0
neighbours. Listing 60 keys five directories deep scans the bucket table 2
times from the range read and 302 times from the walk.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
* s3: range-read listings without the -s3.listRecursiveFromStore flag
A filer whose store cannot list a range answers Unimplemented and the
gateway already walks that bucket's directories instead, so the flag only
switched off a path that falls back by itself. The unit test forces the
walk through the decline cache, and the postgres_flat test checks pages
against the keys in byte order rather than against a second gateway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* s3: step a range-read listing over the bucket's upload parts
The walk skips the bucket's .uploads folder as one entry, but a range read
from the bucket root streamed every part of every unfinished upload and
dropped them, one 1024-row window after another, on each first page.
Every path under .uploads/ sorts before ".uploads0", so the read resumes
there and looks up the one key with that name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* s3: list a waiting folder object once a row passes its key
A range-read page queued every childless folder object until a file row
arrived, so max-keys=1 over a bucket of empty folders read the whole
bucket before answering.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* s3: forget a deleted bucket's recursive-listing decline
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>