mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 09:36:43 +00:00
import --no-gc option
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
static const char USAGE[] =
|
static const char USAGE[] =
|
||||||
R"(
|
R"(
|
||||||
Usage:
|
Usage:
|
||||||
import [--show-rejected] [--no-verify]
|
import [--show-rejected] [--no-verify] [--no-gc]
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
|
||||||
@ -20,6 +20,7 @@ void cmd_import(const std::vector<std::string> &subArgs) {
|
|||||||
|
|
||||||
bool showRejected = args["--show-rejected"].asBool();
|
bool showRejected = args["--show-rejected"].asBool();
|
||||||
bool noVerify = args["--no-verify"].asBool();
|
bool noVerify = args["--no-verify"].asBool();
|
||||||
|
bool noGc = args["--no-gc"].asBool();
|
||||||
|
|
||||||
if (noVerify) LW << "not verifying event IDs or signatures!";
|
if (noVerify) LW << "not verifying event IDs or signatures!";
|
||||||
|
|
||||||
@ -88,7 +89,7 @@ void cmd_import(const std::vector<std::string> &subArgs) {
|
|||||||
|
|
||||||
flushChanges();
|
flushChanges();
|
||||||
|
|
||||||
quadrableGarbageCollect(qdb, 2);
|
|
||||||
|
|
||||||
txn.commit();
|
txn.commit();
|
||||||
|
|
||||||
|
if (!noGc) quadrableGarbageCollect(qdb, 2);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user