mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-23 22:40:39 +02:00
iceberg: route unprefixed requests to the first table bucket (#10675)
This commit is contained in:
1 parent
a2ff9cca27
commit
c8cc56be91
3 files changed
+34
No files matched your search
@@ -1344,6 +1344,10 @@ func runMini(cmd *Command, args []string) bool {
|
||||
tableBucketSpec := *miniTableBucket
|
||||
if tableBucketSpec == "" {
|
||||
tableBucketSpec = os.Getenv("S3_TABLE_BUCKET")
|
||||
} else if os.Getenv("S3_TABLE_BUCKET") == "" {
|
||||
// The catalog routes unprefixed requests to the first S3_TABLE_BUCKET
|
||||
// entry; let the -tableBucket flag mean the same thing.
|
||||
os.Setenv("S3_TABLE_BUCKET", tableBucketSpec)
|
||||
}
|
||||
if err := ensureMiniTableBuckets(tableBucketSpec); err != nil {
|
||||
glog.Warningf("failed to ensure table buckets %q: %v", tableBucketSpec, err)
|
||||
|
||||
Reference in new issue
Block a user