From 41cc216012a34d2dd35d75bcd4359627e37adee0 Mon Sep 17 00:00:00 2001 From: jsteemann Date: Fri, 6 Jan 2017 14:55:50 +0100 Subject: [PATCH] properly reset _nrCollisions --- lib/Basics/IndexBucket.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Basics/IndexBucket.h b/lib/Basics/IndexBucket.h index 41adfb68d9..5e3090b8ec 100644 --- a/lib/Basics/IndexBucket.h +++ b/lib/Basics/IndexBucket.h @@ -140,6 +140,8 @@ struct IndexBucket { TRI_ASSERT(_file == -1); throw; } + + _nrCollisions = 0; } void deallocate() { @@ -206,6 +208,7 @@ struct IndexBucket { _table = nullptr; _nrAlloc = 0; _nrUsed = 0; + _nrCollisions = 0; } int allocateTempfile(char*& filename, size_t filesize) {