mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Merge pull request #57612 from danipozo/fix-reading-s3-script-backupview
Fix parsing virtual hosted S3 URI in clickhouse_backupview script
This commit is contained in:
commit
2d134fd120
@ -1256,7 +1256,7 @@ class S3URI:
|
||||
host = parsed_url.netloc
|
||||
if host.find(".s3") == -1:
|
||||
return False
|
||||
self.bucket, new_host = path.split(".s3", maxsplit=1)
|
||||
self.bucket, new_host = host.split(".s3", maxsplit=1)
|
||||
if len(self.bucket) < 3:
|
||||
return False
|
||||
new_host = "s3" + new_host
|
||||
|
Loading…
Reference in New Issue
Block a user