mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 09:36:43 +00:00
remove quadrable and yesstr
This commit is contained in:
@ -5,7 +5,6 @@
|
||||
|
||||
#include "DBQuery.h"
|
||||
#include "events.h"
|
||||
#include "gc.h"
|
||||
|
||||
|
||||
static const char USAGE[] =
|
||||
@ -65,23 +64,17 @@ void cmd_delete(const std::vector<std::string> &subArgs) {
|
||||
}
|
||||
|
||||
|
||||
auto qdb = getQdbInstance();
|
||||
|
||||
LI << "Deleting " << levIds.size() << " events";
|
||||
|
||||
{
|
||||
auto txn = env.txn_rw();
|
||||
|
||||
auto changes = qdb.change();
|
||||
|
||||
for (auto levId : levIds) {
|
||||
auto view = env.lookup_Event(txn, levId);
|
||||
if (!view) continue; // Deleted in between transactions
|
||||
deleteEvent(txn, changes, *view);
|
||||
deleteEvent(txn, *view);
|
||||
}
|
||||
|
||||
changes.apply(txn);
|
||||
|
||||
txn.commit();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user