mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
fix S3 test
This commit is contained in:
parent
7c2b662e28
commit
7b95ff579d
@ -59,8 +59,14 @@ public:
|
|||||||
|
|
||||||
const String key_prefix = globbed_uri.key.substr(0, globbed_uri.key.find_first_of("*?{"));
|
const String key_prefix = globbed_uri.key.substr(0, globbed_uri.key.find_first_of("*?{"));
|
||||||
|
|
||||||
|
/// We don't have to list bucket, because there is no asterics.
|
||||||
if (key_prefix.size() == globbed_uri.key.size())
|
if (key_prefix.size() == globbed_uri.key.size())
|
||||||
|
{
|
||||||
buffer.emplace_back(globbed_uri.key);
|
buffer.emplace_back(globbed_uri.key);
|
||||||
|
buffer_iter = buffer.begin();
|
||||||
|
is_finished = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
request.SetBucket(globbed_uri.bucket);
|
request.SetBucket(globbed_uri.bucket);
|
||||||
request.SetPrefix(key_prefix);
|
request.SetPrefix(key_prefix);
|
||||||
|
Loading…
Reference in New Issue
Block a user