mirror of https://gitee.com/bigwinds/arangodb
Fixed Memory calculation of new Primary Index
This commit is contained in:
parent
90db96a6dc
commit
b591220c01
|
@ -110,10 +110,7 @@ size_t PrimaryIndex::size () const {
|
|||
}
|
||||
|
||||
size_t PrimaryIndex::memory () const {
|
||||
return static_cast<size_t>(
|
||||
_primaryIndex->size() * sizeof(TRI_doc_mptr_t*) +
|
||||
_primaryIndex->memoryUsage()
|
||||
);
|
||||
return _primaryIndex->memoryUsage();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue