mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-18 17:27:11 +00:00
GC improvements
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
|
||||
#include "events.h"
|
||||
#include "filters.h"
|
||||
#include "gc.h"
|
||||
|
||||
|
||||
static const char USAGE[] =
|
||||
@ -59,6 +60,7 @@ void cmd_import(const std::vector<std::string> &subArgs) {
|
||||
|
||||
logStatus();
|
||||
LI << "Committing " << numCommits << " records";
|
||||
|
||||
txn.commit();
|
||||
|
||||
txn = env.txn_rw();
|
||||
@ -91,5 +93,7 @@ void cmd_import(const std::vector<std::string> &subArgs) {
|
||||
|
||||
flushChanges();
|
||||
|
||||
quadrableGarbageCollect(qdb, 2);
|
||||
|
||||
txn.commit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user