Apply review comments

This commit is contained in:
Alexey Milovidov 2024-02-18 05:13:17 +01:00
parent b7e563c0a6
commit c083498cf8
2 changed files with 3 additions and 1 deletions

View File

@ -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");

View File

@ -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>