0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Revert "not sure it makes a difference but reduce the footprint of desturctor guard at the expense of less precise lossing there. doesnt tend to fire anyway."

This reverts commit e4e52150dc.
This commit is contained in:
dwight 2011-07-11 22:57:26 -04:00
parent 7affa19eeb
commit 8d1314b61e

View File

@ -249,7 +249,10 @@ namespace mongo {
#define MONGO_DESTRUCTOR_GUARD( expression ) \
try { \
expression; \
} catch ( ... ) { problem() << "caught unknown exception in destructor " << __FUNCTION__ << endl; }
} catch ( const std::exception &e ) { \
problem() << "caught exception (" << e.what() << ") in destructor (" << __FUNCTION__ << ")" << endl; \
} catch ( ... ) { \
problem() << "caught unknown exception in destructor (" << __FUNCTION__ << ")" << endl; \
}
#undef MONGO_NORETURN