diff --git a/src/jrd/Monitoring.cpp b/src/jrd/Monitoring.cpp index 232b169b04..91b00d6593 100644 --- a/src/jrd/Monitoring.cpp +++ b/src/jrd/Monitoring.cpp @@ -1220,8 +1220,8 @@ void Monitoring::dumpAttachment(thread_db* tdbb, const Attachment* attachment, b transaction = transaction->tra_next) { for (jrd_req* request = transaction->tra_requests; - request && (request->req_flags & req_active); - request = request->req_caller) + request && (request->req_flags & req_active) && (request->req_transaction == transaction); + request = request->req_caller) { request->adjustCallerStats();