mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-27 18:03:04 +01:00
Better error reporting. Also, don't block the requester in the case of error.
This commit is contained in:
parent
2a1e978816
commit
f8ded89969
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user