mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Apply review comments
This commit is contained in:
parent
b7e563c0a6
commit
c083498cf8
@ -830,6 +830,9 @@ void IMergeTreeDataPart::appendFilesOfIndexGranularity(Strings & /* files */) co
|
||||
|
||||
void IMergeTreeDataPart::loadIndex(std::scoped_lock<std::mutex> &) const
|
||||
{
|
||||
/// Memory for index must not be accounted as memory usage for query, because it belongs to a table.
|
||||
MemoryTrackerBlockerInThread temporarily_disable_memory_tracker;
|
||||
|
||||
/// It can be empty in case of mutations
|
||||
if (!index_granularity.isInitialized())
|
||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "Index granularity is not loaded before index loading");
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include <Common/CurrentMetrics.h>
|
||||
#include <Common/MemoryTrackerBlockerInThread.h>
|
||||
#include <Common/ThreadPool.h>
|
||||
#include <Common/scope_guard_safe.h>
|
||||
#include <Common/setThreadName.h>
|
||||
|
||||
#include <utility>
|
||||
|
Loading…
Reference in New Issue
Block a user