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

Function verify_request_synchronization

src/jrd/jrd.cpp:8553–8562  ·  view source on GitHub ↗

verify_request_synchronization @brief Finds the sub-requests at the given level and replaces it with the original passed request (note the pointer by reference). If that specific sub-request is not found, throw the dreaded "request synchronization error". Notice that at this time, the calling function's "request" pointer has been set to null, so remember that if you write a debugging routine. Thi

Source from the content-addressed store, hash-verified

8551// @param request The incoming, parent request to be replaced.
8552// @param level The level of the sub-request we need to find.
8553static Request* verify_request_synchronization(Statement* statement, USHORT level)
8554{
8555 if (level)
8556 {
8557 if (level >= statement->requests.getCount() || !statement->requests[level])
8558 ERR_post(Arg::Gds(isc_req_sync));
8559 }
8560
8561 return statement->requests[level];
8562}
8563
8564
8565/**

Callers 4

receiveMethod · 0.85
getInfoMethod · 0.85
sendMethod · 0.85
unwindMethod · 0.85

Calls 3

GdsClass · 0.85
ERR_postFunction · 0.70
getCountMethod · 0.45

Tested by

no test coverage detected