mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-18 09:17:12 +00:00
remove auto-gc after delete and import
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
static const char USAGE[] =
|
||||
R"(
|
||||
Usage:
|
||||
delete [--age=<age>] [--filter=<filter>] [--dry-run] [--no-gc]
|
||||
delete [--age=<age>] [--filter=<filter>] [--dry-run]
|
||||
)";
|
||||
|
||||
|
||||
@ -25,7 +25,6 @@ void cmd_delete(const std::vector<std::string> &subArgs) {
|
||||
if (args["--filter"]) filterStr = args["--filter"].asString();
|
||||
|
||||
bool dryRun = args["--dry-run"].asBool();
|
||||
bool noGc = args["--no-gc"].asBool();
|
||||
|
||||
|
||||
|
||||
@ -88,6 +87,4 @@ void cmd_delete(const std::vector<std::string> &subArgs) {
|
||||
|
||||
txn.commit();
|
||||
}
|
||||
|
||||
if (!noGc) quadrableGarbageCollect(qdb, 2);
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
||||
static const char USAGE[] =
|
||||
R"(
|
||||
Usage:
|
||||
import [--show-rejected] [--no-verify] [--no-gc]
|
||||
import [--show-rejected] [--no-verify]
|
||||
)";
|
||||
|
||||
|
||||
@ -20,7 +20,6 @@ void cmd_import(const std::vector<std::string> &subArgs) {
|
||||
|
||||
bool showRejected = args["--show-rejected"].asBool();
|
||||
bool noVerify = args["--no-verify"].asBool();
|
||||
bool noGc = args["--no-gc"].asBool();
|
||||
|
||||
if (noVerify) LW << "not verifying event IDs or signatures!";
|
||||
|
||||
@ -90,6 +89,4 @@ void cmd_import(const std::vector<std::string> &subArgs) {
|
||||
flushChanges();
|
||||
|
||||
txn.commit();
|
||||
|
||||
if (!noGc) quadrableGarbageCollect(qdb, 2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user