From 49e613a6662d49399ffe468d6bdef7f286e3fa94 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Tue, 3 May 2022 17:58:47 +0000 Subject: [PATCH] Fixing build. --- src/Storages/MergeTree/DataPartStorageOnDisk.cpp | 2 +- src/Storages/StorageReplicatedMergeTree.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Storages/MergeTree/DataPartStorageOnDisk.cpp b/src/Storages/MergeTree/DataPartStorageOnDisk.cpp index a5d4effc966..3d7ad957eca 100644 --- a/src/Storages/MergeTree/DataPartStorageOnDisk.cpp +++ b/src/Storages/MergeTree/DataPartStorageOnDisk.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/Storages/StorageReplicatedMergeTree.cpp b/src/Storages/StorageReplicatedMergeTree.cpp index 3a0e00b245c..d020efbaedf 100644 --- a/src/Storages/StorageReplicatedMergeTree.cpp +++ b/src/Storages/StorageReplicatedMergeTree.cpp @@ -8312,7 +8312,8 @@ private: } auto single_disk_volume = std::make_shared(disk->getName(), disk, 0); - auto part = storage->createPart(part_name, part_info, single_disk_volume, relative_temp_part_dir); + auto data_part_storage = std::make_shared(single_disk_volume, relative_data_path, relative_temp_part_dir); + auto part = storage->createPart(part_name, part_info, data_part_storage); /// TODO Transactions: Decide what to do with version metadata (if any). Let's just remove it for now. disk->removeFileIfExists(fs::path(temp_part_dir) / IMergeTreeDataPart::TXN_VERSION_METADATA_FILE_NAME); part->version.setCreationTID(Tx::PrehistoricTID, nullptr);