8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-27 17:23:03 +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,18 +350,20 @@ int DatabaseSnapshot::blockingAst(void* ast_object)
if (!(dbb->dbb_ast_flags & DBB_monitor_off)) 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); dumpData(tdbb);
}
catch (const Exception& ex)
{
iscLogException("Cannot dump the monitoring data", ex);
}
// Release the lock and mark dbb as requesting a new one // Release the lock and mark dbb as requesting a new one
LCK_release(tdbb, lock); LCK_release(tdbb, lock);
dbb->dbb_ast_flags |= DBB_monitor_off; dbb->dbb_ast_flags |= DBB_monitor_off;
} }
catch (const Exception&) {
gds__log("Unexpected exception at the AST level");
}
}
} }
catch (const Exception&) catch (const Exception&)
{} // no-op {} // no-op