1
0
Fork 0

properly reset _nrCollisions

This commit is contained in:
jsteemann 2017-01-06 14:55:50 +01:00
parent 1dfe817fed
commit 41cc216012
1 changed files with 3 additions and 0 deletions

View File

@ -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) {