fixed several issues of the gc. I.e. the gc sometimes did not collect the whole subtree when deleting an operation

This commit is contained in:
Kevin Jahns
2016-03-21 21:00:28 +01:00
parent f844dcbc1e
commit 88971b4e69
3 changed files with 129 additions and 25 deletions

View File

@@ -139,9 +139,9 @@ g.applyRandomTransactionsWithGC = async(function * applyRandomTransactions (user
g.garbageCollectAllUsers = async(function * garbageCollectAllUsers (users) {
// gc two times because of the two gc phases (really collect everything)
yield wait(100)
for (var i in users) {
yield users[i].db.garbageCollect()
yield users[i].db.garbageCollect()
yield users[i].db.emptyGarbageCollector()
}
})