From e61a77ef979537f241052fdd417ec36b580c93df Mon Sep 17 00:00:00 2001 From: kssenii Date: Tue, 17 Sep 2024 15:38:06 +0200 Subject: [PATCH] Minor --- src/Storages/MergeTree/DataPartStorageOnDiskBase.cpp | 2 +- src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Storages/MergeTree/DataPartStorageOnDiskBase.cpp b/src/Storages/MergeTree/DataPartStorageOnDiskBase.cpp index 8c630545372..48f9d21d6a6 100644 --- a/src/Storages/MergeTree/DataPartStorageOnDiskBase.cpp +++ b/src/Storages/MergeTree/DataPartStorageOnDiskBase.cpp @@ -292,7 +292,7 @@ DataPartStorageOnDiskBase::getReplicatedFilesDescription(const NameSet & file_na ReplicatedFilesDescription description; auto relative_path = fs::path(root_path) / part_dir; auto disk = volume->getDisk(); - auto read_settings = Context::getGlobalContextInstance()->getReadSettings(); + auto read_settings = getReadSettings(); auto actual_file_names = getActualFileNamesOnDisk(file_names); for (const auto & name : actual_file_names) diff --git a/src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp b/src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp index 3d7c86a1c42..b3dc9ad16d4 100644 --- a/src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp +++ b/src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp @@ -205,7 +205,7 @@ void DataPartStorageOnDiskFull::copyFileFrom(const IDataPartStorage & source, co fs::path(source_on_disk->getRelativePath()) / from, *volume->getDisk(), fs::path(root_path) / part_dir / to, - Context::getGlobalContextInstance()->getReadSettings()); + getReadSettings()); } void DataPartStorageOnDiskFull::createProjection(const std::string & name)