summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Freeze/SharedDbEnv.cpp27
1 files changed, 25 insertions, 2 deletions
diff --git a/cpp/src/Freeze/SharedDbEnv.cpp b/cpp/src/Freeze/SharedDbEnv.cpp
index 6ba07c9d9ba..be1481313ab 100644
--- a/cpp/src/Freeze/SharedDbEnv.cpp
+++ b/cpp/src/Freeze/SharedDbEnv.cpp
@@ -77,8 +77,8 @@ dbErrCallback(const char* prefix, char* msg)
const Freeze::SharedDbEnv* env = reinterpret_cast<const Freeze::SharedDbEnv*>(prefix);
assert(env != 0);
- Ice::Error out(env->getCommunicator()->getLogger());
- out << "Freeze database error in DbEnv(\"" << env->getEnvName() << "\"): " << msg;
+ Ice::Trace out(env->getCommunicator()->getLogger(), "Berkeley DB");
+ out << "DbEnv \"" << env->getEnvName() << "\": " << msg;
}
@@ -320,6 +320,29 @@ Freeze::SharedDbEnv::SharedDbEnv(const std::string& envName,
{
flags |= DB_PRIVATE;
}
+
+ /*
+
+ //
+ // Does not seem to work reliably in 4.1.25
+ //
+
+ time_t timeStamp = properties->getPropertyAsIntWithDefault(propertyPrefix + ".tx_timestamp", 0);
+
+ if(timeStamp != 0)
+ {
+ try
+ {
+ set_tx_timestamp(&timeStamp);
+ }
+ catch(const ::DbException& dx)
+ {
+ DBException ex(__FILE__, __LINE__);
+ ex.message = dx.what();
+ throw ex;
+ }
+ }
+ */
//
// Threading