From 8ee02c8bac59b598ea22e56481bb120c1118ce55 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 9 Aug 2014 21:06:58 -0400 Subject: [PATCH] Context - If Hooks::onExit indicates changes, TDB2::commit is called. --- src/Context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Context.cpp b/src/Context.cpp index 654e71e9c..c97c19f2a 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -279,7 +279,8 @@ int Context::run () try { rc = dispatch (output); - hooks.onExit (); + if (hooks.onExit ()) + tdb2.commit (); std::stringstream s; s << "Perf "