diff options
author | Jose <jose@zeroc.com> | 2013-09-11 00:51:16 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-09-11 00:51:16 +0200 |
commit | 07f13637f035740e474677ad5d76cdafcd3560d7 (patch) | |
tree | 7983312386b06164742c5a8070f3f872b2f1673d /cpp/src/Freeze/ObjectStore.cpp | |
parent | Revert unintentional change in previous commit. (diff) | |
download | ice-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.cpp | 10 |
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(); } |