From 1805d609172c52b3aceb0e4a0ee033acccc832e0 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Fri, 22 Apr 2022 20:29:14 +0000 Subject: [PATCH] Fix mark cache. --- src/Storages/MergeTree/MergeTreeMarksLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Storages/MergeTree/MergeTreeMarksLoader.cpp b/src/Storages/MergeTree/MergeTreeMarksLoader.cpp index c948a9bbced..aeb00bfda79 100644 --- a/src/Storages/MergeTree/MergeTreeMarksLoader.cpp +++ b/src/Storages/MergeTree/MergeTreeMarksLoader.cpp @@ -95,7 +95,7 @@ void MergeTreeMarksLoader::loadMarks() { if (mark_cache) { - auto key = mark_cache->hash(mrk_path); + auto key = mark_cache->hash(fs::path(data_part_storage->getFullPath()) / mrk_path); if (save_marks_in_cache) { auto callback = [this]{ return loadMarksImpl(); }; @@ -112,7 +112,7 @@ void MergeTreeMarksLoader::loadMarks() marks = loadMarksImpl(); if (!marks) - throw Exception("Failed to load marks: " + mrk_path, ErrorCodes::LOGICAL_ERROR); + throw Exception("Failed to load marks: " + std::string(fs::path(data_part_storage->getFullPath()) / mrk_path), ErrorCodes::LOGICAL_ERROR); } }