mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 19:14:30 +00:00
Fixed overflow in quota [#METR-23944].
This commit is contained in:
parent
901c6a8d50
commit
3e15e81fab
@ -30,7 +30,7 @@ void QuotaValues<Counter>::initFromConfig(const String & config_elem, Poco::Util
|
|||||||
result_bytes = parse<UInt64>(config.getString(config_elem + ".result_bytes", "0"));
|
result_bytes = parse<UInt64>(config.getString(config_elem + ".result_bytes", "0"));
|
||||||
read_rows = parse<UInt64>(config.getString(config_elem + ".read_rows", "0"));
|
read_rows = parse<UInt64>(config.getString(config_elem + ".read_rows", "0"));
|
||||||
read_bytes = parse<UInt64>(config.getString(config_elem + ".read_bytes", "0"));
|
read_bytes = parse<UInt64>(config.getString(config_elem + ".read_bytes", "0"));
|
||||||
execution_time_usec = config.getInt(config_elem + ".execution_time", 0) * 1000000;
|
execution_time_usec = config.getUInt64(config_elem + ".execution_time", 0) * 1000000ULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
template void QuotaValues<size_t>::initFromConfig(const String & config_elem, Poco::Util::AbstractConfiguration & config);
|
template void QuotaValues<size_t>::initFromConfig(const String & config_elem, Poco::Util::AbstractConfiguration & config);
|
||||||
|
Loading…
Reference in New Issue
Block a user