From c514ec3278c6424e434af77e174ee34411c51d68 Mon Sep 17 00:00:00 2001 From: Alexander Burmak Date: Thu, 12 Dec 2019 12:18:46 +0300 Subject: [PATCH] Minor code cleanup --- dbms/src/Disks/DiskLocal.h | 2 -- dbms/src/Disks/IDisk.h | 3 --- 2 files changed, 5 deletions(-) diff --git a/dbms/src/Disks/DiskLocal.h b/dbms/src/Disks/DiskLocal.h index 2ecab053540..263c7e59376 100644 --- a/dbms/src/Disks/DiskLocal.h +++ b/dbms/src/Disks/DiskLocal.h @@ -63,8 +63,6 @@ public: std::unique_ptr writeFile(const String & path) override; - bool supportsAtomicMove() const override { return true; } - private: bool tryReserve(UInt64 bytes); diff --git a/dbms/src/Disks/IDisk.h b/dbms/src/Disks/IDisk.h index 9824e251b23..496520fece0 100644 --- a/dbms/src/Disks/IDisk.h +++ b/dbms/src/Disks/IDisk.h @@ -97,9 +97,6 @@ public: /// Open the file for write and return WriteBuffer object. virtual std::unique_ptr writeFile(const String & path) = 0; - - /// Return `true` if underlying storage supports atomic move of files (rename). - virtual bool supportsAtomicMove() const { return false; } }; using DiskPtr = std::shared_ptr;