From b591220c01d75752e826b1c4501aa4c1f450c2f1 Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Fri, 28 Aug 2015 11:02:19 +0200 Subject: [PATCH] Fixed Memory calculation of new Primary Index --- arangod/Indexes/PrimaryIndex.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arangod/Indexes/PrimaryIndex.cpp b/arangod/Indexes/PrimaryIndex.cpp index 33d2c2a5f7..33aaf53378 100644 --- a/arangod/Indexes/PrimaryIndex.cpp +++ b/arangod/Indexes/PrimaryIndex.cpp @@ -110,10 +110,7 @@ size_t PrimaryIndex::size () const { } size_t PrimaryIndex::memory () const { - return static_cast( - _primaryIndex->size() * sizeof(TRI_doc_mptr_t*) + - _primaryIndex->memoryUsage() - ); + return _primaryIndex->memoryUsage(); } ////////////////////////////////////////////////////////////////////////////////