mirror of https://gitee.com/bigwinds/arangodb
properly reset _nrCollisions
This commit is contained in:
parent
1dfe817fed
commit
41cc216012
|
@ -140,6 +140,8 @@ struct IndexBucket {
|
||||||
TRI_ASSERT(_file == -1);
|
TRI_ASSERT(_file == -1);
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_nrCollisions = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void deallocate() {
|
void deallocate() {
|
||||||
|
@ -206,6 +208,7 @@ struct IndexBucket {
|
||||||
_table = nullptr;
|
_table = nullptr;
|
||||||
_nrAlloc = 0;
|
_nrAlloc = 0;
|
||||||
_nrUsed = 0;
|
_nrUsed = 0;
|
||||||
|
_nrCollisions = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int allocateTempfile(char*& filename, size_t filesize) {
|
int allocateTempfile(char*& filename, size_t filesize) {
|
||||||
|
|
Loading…
Reference in New Issue