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:
parent
7affa19eeb
commit
8d1314b61e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user