mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
* filer: RecursiveLister, a store capability to list a subtree in path order The wrapper hands it to the default store, reading hard links as listings do, and declines it when path-specific stores could hold part of the subtree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * filer/sql: list a subtree with one range scan when rows are keyed by path AbstractSqlStore lists recursively when its generator implements RecursiveListSqlGenerator. The range runs from the directory and prefix to the least string past every path starting with them. A directory whose subtree spans the bucket tables is declined. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * filer/postgres: the postgres_flat generator lists a path range Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * filer/store_test: check recursive listings Byte order across +, -, / and non-ASCII names, prefixes holding a slash, literal % and _, resuming after a path, pages of one and three, a directory outside the buckets, and the directories that span bucket tables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * filer/sql: a recursive listing's start path outside the bucket table bounds it by full path A start path in another bucket was trimmed as if it were inside this one, so a start path past the bucket listed it all again, and one before it could skip entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1. create "seaweedfs" database export PGHOME=/Library/PostgreSQL/10 $PGHOME/bin/createdb --username=postgres --password seaweedfs 2. create "filemeta" table $PGHOME/bin/psql --username=postgres --password seaweedfs CREATE TABLE IF NOT EXISTS filemeta ( dirhash BIGINT, name VARCHAR(65535), directory VARCHAR(65535), meta bytea, PRIMARY KEY (dirhash, name) );