MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / hasActiveRequests

Method hasActiveRequests

src/jrd/Attachment.cpp:671–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669
670
671bool Attachment::hasActiveRequests() const
672{
673 for (const jrd_tra* transaction = att_transactions;
674 transaction; transaction = transaction->tra_next)
675 {
676 for (const Request* request = transaction->tra_requests;
677 request; request = request->req_tra_next)
678 {
679 if (request->req_transaction && (request->req_flags & req_active))
680 return true;
681 }
682 }
683
684 return false;
685}
686
687
688// Find an inactive incarnation of a system request. If necessary, clone it.

Callers 1

putAttachmentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected