mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +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 OSS = "OSS";
|
||||
|
||||
|
||||
uri = uri_;
|
||||
storage_name = S3;
|
||||
|
||||
@ -796,11 +795,8 @@ namespace S3
|
||||
if (start != std::string::npos)
|
||||
{
|
||||
start += version_key.length();
|
||||
|
||||
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);
|
||||
version_id = query_string.substr(start, end == std::string::npos ? std::string::npos : end - start);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user