MCPcopy Create free account
hub / github.com/apache/cloudberry / PQrequestFinish

Function PQrequestFinish

src/interfaces/libpq/fe-connect.c:4746–4758  ·  view source on GitHub ↗

* PQrequestFinish: request query finish * * Same as PQcancel, except it sends a finish request. */

Source from the content-addressed store, hash-verified

4744 * Same as PQcancel, except it sends a finish request.
4745 */
4746int
4747PQrequestFinish(PGcancel *cancel, char *errbuf, int errbufsize)
4748{
4749 if (!cancel)
4750 {
4751 strlcpy(errbuf, "PQrequestFinish() -- no cancel object supplied",
4752 errbufsize);
4753 return false;
4754 }
4755
4756 return internal_cancel(&cancel->raddr, cancel->be_pid, cancel->be_key,
4757 errbuf, errbufsize, true);
4758}
4759
4760/*
4761 * PQrequestCancel: old, not thread-safe function for requesting query cancel

Callers 1

cdbconn_signalQEFunction · 0.85

Calls 2

strlcpyFunction · 0.85
internal_cancelFunction · 0.85

Tested by

no test coverage detected