Tiny IStorage refactoring

This commit is contained in:
Azat Khuzhin 2020-07-11 15:17:06 +03:00
parent ceac649c01
commit 84c93a6b02

View File

@ -443,10 +443,7 @@ public:
/// - For total_rows column in system.tables
///
/// Does takes underlying Storage (if any) into account.
virtual std::optional<UInt64> totalRows() const
{
return {};
}
virtual std::optional<UInt64> 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<UInt64> totalBytes() const
{
return {};
}
virtual std::optional<UInt64> totalBytes() const { return {}; }
private:
/// Lock required for alter queries (lockForAlter). Always taken for write