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(); } UInt64 getSize() const override { return reservation->getSize(); }
DiskPtr getDisk(size_t i) const override { DiskPtr getDisk(size_t i) const override
{
if (i != 0) if (i != 0)
throw Exception("Can't use i != 0 with single disk reservation", ErrorCodes::INCORRECT_DISK_INDEX); throw Exception("Can't use i != 0 with single disk reservation", ErrorCodes::INCORRECT_DISK_INDEX);
return disk; return disk;

View File

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

View File

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