summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/ConnectionI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-08-23 14:56:08 -0400
committerBernard Normier <bernard@zeroc.com>2007-08-23 14:56:08 -0400
commit0664ab6ebfe794441a5d2f15507f449231384c85 (patch)
tree7df11c9a0d891c62cb284b62e1416b2742788ee2 /cpp/src/Freeze/ConnectionI.cpp
parenthttp://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2426 - logger date/time fo... (diff)
downloadice-0664ab6ebfe794441a5d2f15507f449231384c85.tar.bz2
ice-0664ab6ebfe794441a5d2f15507f449231384c85.tar.xz
ice-0664ab6ebfe794441a5d2f15507f449231384c85.zip
Fixed bug #2233
Diffstat (limited to 'cpp/src/Freeze/ConnectionI.cpp')
-rw-r--r--cpp/src/Freeze/ConnectionI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/Freeze/ConnectionI.cpp b/cpp/src/Freeze/ConnectionI.cpp
index ca661331c8e..1237a46c753 100644
--- a/cpp/src/Freeze/ConnectionI.cpp
+++ b/cpp/src/Freeze/ConnectionI.cpp
@@ -31,6 +31,7 @@ Freeze::ConnectionI::beginTransactionI()
}
closeAllIterators();
_transaction = new TransactionI(this);
+ _transaction->internalIncRef();
return _transaction;
}
@@ -49,7 +50,7 @@ Freeze::ConnectionI::close()
{
_transaction->rollback();
}
- catch(const DatabaseException&)
+ catch(const DatabaseException&)
{
//
// Ignored
@@ -90,6 +91,7 @@ Freeze::ConnectionI::ConnectionI(const SharedDbEnvPtr& dbEnv) :
_communicator(dbEnv->getCommunicator()),
_dbEnv(dbEnv),
_envName(dbEnv->getEnvName()),
+ _transaction(0),
_trace(_communicator->getProperties()->getPropertyAsInt("Freeze.Trace.Map")),
_txTrace(_communicator->getProperties()->getPropertyAsInt("Freeze.Trace.Transaction")),
_deadlockWarning(_communicator->getProperties()->getPropertyAsInt("Freeze.Warn.Deadlocks") != 0)