mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 06:43:03 +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
ed77b57903
commit
3a6a7e1944
@ -176,7 +176,9 @@ public:
|
|||||||
m_attachment(attachment),
|
m_attachment(attachment),
|
||||||
m_request(request)
|
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)
|
if (!m_need_trace)
|
||||||
{
|
{
|
||||||
m_request->req_fetch_baseline = NULL;
|
m_request->req_fetch_baseline = NULL;
|
||||||
@ -188,12 +190,6 @@ public:
|
|||||||
|
|
||||||
~TraceDSQLFetch()
|
~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);
|
fetch(true, res_failed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user