summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2012-02-21 23:42:26 +0000
committerrandomdan <randomdan@localhost>2012-02-21 23:42:26 +0000
commit1019336ea1908a3e9df0eaa0c80220d8185f47e3 (patch)
tree26c5cc1c22c55731bdfc212cade6cf78e9db05d6
parentAdd options for controlling the extra annotations in XML output (diff)
downloadproject2-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.cpp2
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);
}