summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/ObjectStore.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-09-11 00:51:16 +0200
committerJose <jose@zeroc.com>2013-09-11 00:51:16 +0200
commit07f13637f035740e474677ad5d76cdafcd3560d7 (patch)
tree7983312386b06164742c5a8070f3f872b2f1673d /cpp/src/Freeze/ObjectStore.cpp
parentRevert unintentional change in previous commit. (diff)
downloadice-07f13637f035740e474677ad5d76cdafcd3560d7.tar.bz2
ice-07f13637f035740e474677ad5d76cdafcd3560d7.tar.xz
ice-07f13637f035740e474677ad5d76cdafcd3560d7.zip
Fixed (ICE-4908) - Review handling of DbExceptions in Freeze
Diffstat (limited to 'cpp/src/Freeze/ObjectStore.cpp')
-rw-r--r--cpp/src/Freeze/ObjectStore.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/cpp/src/Freeze/ObjectStore.cpp b/cpp/src/Freeze/ObjectStore.cpp
index 55d5e243c66..189ffe4ad49 100644
--- a/cpp/src/Freeze/ObjectStore.cpp
+++ b/cpp/src/Freeze/ObjectStore.cpp
@@ -208,7 +208,15 @@ Freeze::ObjectStoreBase::~ObjectStoreBase()
for(size_t i = 0; i < _indices.size(); ++i)
{
- _indices[i]->_impl->close();
+ try
+ {
+ _indices[i]->_impl->close();
+ }
+ catch(const DatabaseException& ex)
+ {
+ Ice::Error error(_communicator->getLogger());
+ error << "Freeze: closing ObjectStore " << _dbName << " raised DatabaseException: " << ex.what();
+ }
}
_indices.clear();
}