From 1019336ea1908a3e9df0eaa0c80220d8185f47e3 Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 21 Feb 2012 23:42:26 +0000 Subject: Fix the transaction handling in taskHost in error situations --- project2/common/taskHost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3