From e57380151749404424982012d0d3bfdf2858d7e0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 22 Aug 2011 23:04:38 -0400 Subject: [PATCH] TDB2 - Diagnostics - Added a diagnostic dump of the TDB2 state in debug mode. - Added a call to TDB2::dump at the start of TDB2::commit. - Removed unnecessary calls to TDB2::dump. --- src/Context.cpp | 1 - src/TDB2.cpp | 106 +++++++++++++++++++++++++++--------------------- src/TDB2.h | 3 +- 3 files changed, 62 insertions(+), 48 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index 1380e7b35..2018c30e4 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -153,7 +153,6 @@ int Context::initialize (int argc, const char** argv) tdb.clear (); // TODO Obsolete tdb.location (data_dir); // TODO Obsolete tdb2.set_location (data_dir); - tdb2.dump (); // Hook system init, plus post-start event occurring at the first possible // moment after hook initialization. diff --git a/src/TDB2.cpp b/src/TDB2.cpp index c76dc3ff6..024de921a 100644 --- a/src/TDB2.cpp +++ b/src/TDB2.cpp @@ -27,6 +27,7 @@ //#include // TODO Remove. #include +#include #include #include @@ -341,6 +342,59 @@ int TF2::id (const std::string& uuid) } //////////////////////////////////////////////////////////////////////////////// +//