diff options
author | randomdan <randomdan@localhost> | 2012-02-21 23:42:26 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2012-02-21 23:42:26 +0000 |
commit | 4d9f4fd770e57012c430a3c7af7c1d8094ff44b6 (patch) | |
tree | 26c5cc1c22c55731bdfc212cade6cf78e9db05d6 | |
parent | Add options for controlling the extra annotations in XML output (diff) | |
download | project2-4d9f4fd770e57012c430a3c7af7c1d8094ff44b6.tar.bz2 project2-4d9f4fd770e57012c430a3c7af7c1d8094ff44b6.tar.xz project2-4d9f4fd770e57012c430a3c7af7c1d8094ff44b6.zip |
Fix the transaction handling in taskHost in error situations
-rw-r--r-- | project2/common/taskHost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/project2/common/taskHost.cpp b/project2/common/taskHost.cpp index 72fedad..cbfe7c3 100644 --- a/project2/common/taskHost.cpp +++ b/project2/common/taskHost.cpp @@ -30,7 +30,7 @@ void TaskHost::execute() const { loadScriptComponents(); - ScopeObject txHandler(boost::bind(&TaskHost::commitAll, this), boost::bind(&TaskHost::rollbackAll, this)); + ScopeObject txHandler(ScopeObject::Event(), boost::bind(&TaskHost::commitAll, this), boost::bind(&TaskHost::rollbackAll, this)); run(tasks); } |