mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:43:04 +01:00
Fixed bug CORE-3845 : Interruption of 'heavy query' leads to 0 ms (zero duration) in it`s statistics in trace log
This commit is contained in:
parent
b03027d1ca
commit
854231942a
@ -177,7 +177,9 @@ public:
|
||||
m_attachment(attachment),
|
||||
m_request(request)
|
||||
{
|
||||
m_need_trace = m_request->req_traced && TraceManager::need_dsql_execute(m_attachment);
|
||||
m_need_trace = m_request->req_traced && TraceManager::need_dsql_execute(m_attachment) &&
|
||||
m_request->req_request && (m_request->req_request->req_flags & req_active);
|
||||
|
||||
if (!m_need_trace)
|
||||
{
|
||||
m_request->req_fetch_baseline = NULL;
|
||||
@ -189,12 +191,6 @@ public:
|
||||
|
||||
~TraceDSQLFetch()
|
||||
{
|
||||
// don't trace fetch after EOS
|
||||
if (m_request && m_request->req_request &&
|
||||
!(m_request->req_request->req_flags & req_active))
|
||||
{
|
||||
return;
|
||||
}
|
||||
fetch(true, res_failed);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user