mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
Minor code cleanup
This commit is contained in:
parent
2ce6136de5
commit
c514ec3278
@ -63,8 +63,6 @@ public:
|
|||||||
|
|
||||||
std::unique_ptr<WriteBuffer> writeFile(const String & path) override;
|
std::unique_ptr<WriteBuffer> writeFile(const String & path) override;
|
||||||
|
|
||||||
bool supportsAtomicMove() const override { return true; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool tryReserve(UInt64 bytes);
|
bool tryReserve(UInt64 bytes);
|
||||||
|
|
||||||
|
@ -97,9 +97,6 @@ public:
|
|||||||
|
|
||||||
/// Open the file for write and return WriteBuffer object.
|
/// Open the file for write and return WriteBuffer object.
|
||||||
virtual std::unique_ptr<WriteBuffer> writeFile(const String & path) = 0;
|
virtual std::unique_ptr<WriteBuffer> 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<IDisk>;
|
using DiskPtr = std::shared_ptr<IDisk>;
|
||||||
|
Loading…
Reference in New Issue
Block a user