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
commit4d9f4fd770e57012c430a3c7af7c1d8094ff44b6 (patch)
tree26c5cc1c22c55731bdfc212cade6cf78e9db05d6
parentAdd options for controlling the extra annotations in XML output (diff)
downloadproject2-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.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);
}