From 5d1f4355a1d20e0b5c4a3a7356ed61c075afbeae Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Thu, 13 Jul 2017 19:53:34 +0300 Subject: [PATCH] fixed allocated size calculation for ColumnArray --- dbms/src/Columns/ColumnArray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Columns/ColumnArray.cpp b/dbms/src/Columns/ColumnArray.cpp index fc71d9ceb49..0d5f40da59f 100644 --- a/dbms/src/Columns/ColumnArray.cpp +++ b/dbms/src/Columns/ColumnArray.cpp @@ -300,7 +300,7 @@ size_t ColumnArray::byteSize() const size_t ColumnArray::allocatedBytes() const { - return getData().allocatedBytes() + getOffsets().allocated_bytes() * sizeof(getOffsets()[0]); + return getData().allocatedBytes() + getOffsets().allocated_bytes(); }