mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TDB
- Integration TDB2 into the initialization process. It begins...
This commit is contained in:
parent
10b97fc967
commit
a16b8366cd
3 changed files with 14 additions and 2 deletions
|
@ -141,8 +141,9 @@ int Context::initialize (int argc, const char** argv)
|
|||
locale = locale.substr (0, period);
|
||||
|
||||
// Initialize the database.
|
||||
tdb.clear ();
|
||||
tdb.location (data_dir);
|
||||
tdb.clear (); // TODO Obsolete
|
||||
tdb.location (data_dir); // TODO Obsolete
|
||||
tdb2.set_location (data_dir);
|
||||
|
||||
// Hook system init, plus post-start event occurring at the first possible
|
||||
// moment after hook initialization.
|
||||
|
@ -256,7 +257,10 @@ int Context::dispatch (std::string &out)
|
|||
|
||||
// GC is invoked prior to running any command that displays task IDs.
|
||||
if (c->displays_id ())
|
||||
{
|
||||
tdb.gc ();
|
||||
tdb2.gc ();
|
||||
}
|
||||
|
||||
args.dump ("Argument Categorization");
|
||||
return c->execute (out);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue