TDB2 - id <--> uuid mapping

- Migrated TDB mapping over to TDB2 mapping, which occurs at the TF2 level.
  This should (soon) restore task dependencies.
This commit is contained in:
Paul Beckingham 2011-08-13 17:43:07 -04:00
parent 30034f057b
commit bfad448f82
3 changed files with 45 additions and 3 deletions

View file

@ -794,7 +794,7 @@ void Task::addDependency (int id)
throw std::string (STRING_TASK_DEPEND_ITSELF);
// Check for extant dependency.
std::string uuid = context.tdb.uuid (id);
std::string uuid = context.tdb2.pending.uuid (id);
if (uuid == "")
throw format (STRING_TASK_DEPEND_MISSING, id);
@ -839,7 +839,7 @@ void Task::removeDependency (const std::string& uuid)
////////////////////////////////////////////////////////////////////////////////
void Task::removeDependency (int id)
{
std::string uuid = context.tdb.uuid (id);
std::string uuid = context.tdb2.pending.uuid (id);
if (uuid != "")
removeDependency (uuid);
else
@ -858,7 +858,7 @@ void Task::getDependencies (std::vector <int>& all) const
std::vector <std::string>::iterator i;
for (i = deps.begin (); i != deps.end (); ++i)
all.push_back (context.tdb.id (*i));
all.push_back (context.tdb2.pending.id (*i));
}
////////////////////////////////////////////////////////////////////////////////