From 84c93a6b02ce43c952a800565bbb8d3228eb92f5 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sat, 11 Jul 2020 15:17:06 +0300 Subject: [PATCH] Tiny IStorage refactoring --- src/Storages/IStorage.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Storages/IStorage.h b/src/Storages/IStorage.h index 5b49e1cfd4c..55f90160ff0 100644 --- a/src/Storages/IStorage.h +++ b/src/Storages/IStorage.h @@ -443,10 +443,7 @@ public: /// - For total_rows column in system.tables /// /// Does takes underlying Storage (if any) into account. - virtual std::optional totalRows() const - { - return {}; - } + virtual std::optional totalRows() const { return {}; } /// If it is possible to quickly determine exact number of bytes for the table on storage: /// - memory (approximated, resident) @@ -461,10 +458,7 @@ public: /// Memory part should be estimated as a resident memory size. /// In particular, alloctedBytes() is preferable over bytes() /// when considering in-memory blocks. - virtual std::optional totalBytes() const - { - return {}; - } + virtual std::optional totalBytes() const { return {}; } private: /// Lock required for alter queries (lockForAlter). Always taken for write