Introduce IDisk::supportParallelWrite()

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-02-27 12:35:51 +03:00
parent b1b10d7208
commit 4200b56f3a
3 changed files with 6 additions and 1 deletions

View File

@ -248,6 +248,10 @@ public:
/// Overrode in remote fs disks. /// Overrode in remote fs disks.
virtual bool supportZeroCopyReplication() const = 0; virtual bool supportZeroCopyReplication() const = 0;
/// Whether this disk support parallel write
/// Overrode in remote fs disks.
virtual bool supportParallelWrite() const { return false; }
virtual bool isReadOnly() const { return false; } virtual bool isReadOnly() const { return false; }
/// Check if disk is broken. Broken disks will have 0 space and not be used. /// Check if disk is broken. Broken disks will have 0 space and not be used.

View File

@ -4,7 +4,6 @@
#include <IO/ReadBufferFromFile.h> #include <IO/ReadBufferFromFile.h>
#include <IO/ReadHelpers.h> #include <IO/ReadHelpers.h>
#include <IO/WriteBufferFromFile.h> #include <IO/WriteBufferFromFile.h>
#include <IO/WriteBufferFromS3.h>
#include <IO/WriteHelpers.h> #include <IO/WriteHelpers.h>
#include <Common/createHardLink.h> #include <Common/createHardLink.h>
#include <Common/quoteString.h> #include <Common/quoteString.h>

View File

@ -103,6 +103,8 @@ public:
bool supportZeroCopyReplication() const override { return true; } bool supportZeroCopyReplication() const override { return true; }
bool supportParallelWrite() const override { return true; }
void shutdown() override; void shutdown() override;
void startup() override; void startup() override;