mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
better
This commit is contained in:
parent
755d5c55f9
commit
03f76dda1d
@ -779,7 +779,6 @@ namespace S3
|
|||||||
static constexpr auto OBS = "OBS";
|
static constexpr auto OBS = "OBS";
|
||||||
static constexpr auto OSS = "OSS";
|
static constexpr auto OSS = "OSS";
|
||||||
|
|
||||||
|
|
||||||
uri = uri_;
|
uri = uri_;
|
||||||
storage_name = S3;
|
storage_name = S3;
|
||||||
|
|
||||||
@ -796,11 +795,8 @@ namespace S3
|
|||||||
if (start != std::string::npos)
|
if (start != std::string::npos)
|
||||||
{
|
{
|
||||||
start += version_key.length();
|
start += version_key.length();
|
||||||
|
|
||||||
auto end = query_string.find_first_of('&', start);
|
auto end = query_string.find_first_of('&', start);
|
||||||
end = end == std::string::npos ? query_string.length() : end - start;
|
version_id = query_string.substr(start, end == std::string::npos ? std::string::npos : end - start);
|
||||||
|
|
||||||
version_id = query_string.substr(start, end);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user