8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00

Move the caller statistics update out of the loop.

This solves CORE-2329: Significant performance degradation in v2.1.2rc1.
It has been done in HEAD recently, so it doesn't require the front port.
This commit is contained in:
dimitr 2009-02-17 20:14:05 +00:00
parent 82460bd220
commit 80dd0a3c38

View File

@ -2731,8 +2731,6 @@ static jrd_nod* looper(thread_db* tdbb, jrd_req* request, jrd_nod* in_node)
BUGCHECK(168); /* msg 168 looper: action not yet implemented */
}
request->adjustCallerStats();
} // try
catch (const Firebird::Exception& ex) {
@ -2784,6 +2782,8 @@ static jrd_nod* looper(thread_db* tdbb, jrd_req* request, jrd_nod* in_node)
}
} // while()
request->adjustCallerStats();
// If there is no node, assume we have finished processing the
// request unless we are in the middle of processing an
// asynchronous message