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 | 1019336ea1908a3e9df0eaa0c80220d8185f47e3 (patch) | |
tree | 26c5cc1c22c55731bdfc212cade6cf78e9db05d6 | |
parent | Add options for controlling the extra annotations in XML output (diff) | |
download | project2-1019336ea1908a3e9df0eaa0c80220d8185f47e3.tar.bz2 project2-1019336ea1908a3e9df0eaa0c80220d8185f47e3.tar.xz project2-1019336ea1908a3e9df0eaa0c80220d8185f47e3.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); } |