style fixes

This commit is contained in:
Alexandra 2021-05-19 22:06:25 +00:00
parent f71e97511b
commit 11e40ad000
4 changed files with 11 additions and 4 deletions

View File

@ -36,7 +36,8 @@ public:
UInt64 getSize() const override { return reservation->getSize(); }
DiskPtr getDisk(size_t i) const override {
DiskPtr getDisk(size_t i) const override
{
if (i != 0)
throw Exception("Can't use i != 0 with single disk reservation", ErrorCodes::INCORRECT_DISK_INDEX);
return disk;

View File

@ -85,7 +85,8 @@ public:
return delegate->iterateDirectory(wrapped_path);
}
void createFile(const String & path) override {
void createFile(const String & path) override
{
auto wrapped_path = wrappedPath(path);
delegate->createFile(wrapped_path);
}

View File

@ -24,8 +24,8 @@ struct DiskType
return "memory";
case Type::S3:
return "s3";
case Type::Encrypted:
return "encrypted";
case Type::Encrypted:
return "encrypted";
}
__builtin_unreachable();
}

View File

@ -10,6 +10,11 @@
namespace DB
{
namespace ErrorCodes
{
extern const int ARGUMENT_OUT_OF_BOUND;
}
using namespace FileEncryption;
class ReadEncryptedBuffer : public ReadBufferFromFileBase