8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 19:23: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:
hvlad 2012-05-12 09:30:15 +00:00
parent b03027d1ca
commit 854231942a

View File

@ -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);
}