8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-26 07:23:08 +01:00

Better error reporting. Also, don't block the requester in the case of error.

This commit is contained in:
dimitr 2009-05-28 07:58:39 +00:00
parent 2a1e978816
commit f8ded89969

View File

@ -350,17 +350,19 @@ int DatabaseSnapshot::blockingAst(void* ast_object)
if (!(dbb->dbb_ast_flags & DBB_monitor_off))
{
try {
// Write the data to the shared memory
// Write the data to the shared memory
try
{
dumpData(tdbb);
}
catch (const Exception& ex)
{
iscLogException("Cannot dump the monitoring data", ex);
}
// Release the lock and mark dbb as requesting a new one
LCK_release(tdbb, lock);
dbb->dbb_ast_flags |= DBB_monitor_off;
}
catch (const Exception&) {
gds__log("Unexpected exception at the AST level");
}
// Release the lock and mark dbb as requesting a new one
LCK_release(tdbb, lock);
dbb->dbb_ast_flags |= DBB_monitor_off;
}
}
catch (const Exception&)