mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Fix queue test
This commit is contained in:
parent
a949329830
commit
9281c4786b
@ -77,7 +77,7 @@ std::vector<int64_t> SessionExpiryQueue::getExpiredSessions() const
|
||||
std::vector<int64_t> result;
|
||||
|
||||
/// Check all buckets
|
||||
for (auto & [expire_time, expired_sessions] : expiry_to_sessions)
|
||||
for (const auto & [expire_time, expired_sessions] : expiry_to_sessions)
|
||||
{
|
||||
if (expire_time <= now)
|
||||
result.insert(result.end(), expired_sessions.begin(), expired_sessions.end());
|
||||
|
Loading…
Reference in New Issue
Block a user