- Fixed a bug, or rather a side-effect of more efficient i/o.  Now that
  a TDB2::GC call does not write out files until the final TDB2::commit,
  the GC has the effect of not modifying task IDs based on shuffling tasks
  between pending.data and completed.data until the next command.  Fixed.
This commit is contained in:
Paul Beckingham 2011-09-13 00:22:11 -04:00
parent 776bfea402
commit dcd0bd1de7

View file

@ -1607,11 +1607,15 @@ int TDB2::gc ()
pending.clear ();
pending._dirty = true;
pending._loaded_tasks = true;
_id = 1;
for (task = pending_tasks_after.begin ();
task != pending_tasks_after.end ();
++task)
{
task->id = _id++;
pending._tasks.push_back (*task);
}
// Note: deliberately no commit.
}