mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
change implementation from has (#3849)
Change from get(uuid, task) to get_task_data to always have a full uuid match and to improve read performance for the diagnostics command. See #3848 for details.
This commit is contained in:
parent
15bb71764e
commit
2a64b5c880
1 changed files with 1 additions and 2 deletions
|
@ -354,8 +354,7 @@ bool TDB2::get(const std::string& uuid, Task& task) {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Locate task by UUID, wherever it is.
|
||||
bool TDB2::has(const std::string& uuid) {
|
||||
Task task;
|
||||
return get(uuid, task);
|
||||
return replica()->get_task_data(tc::uuid_from_string(uuid)).is_some();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue