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

Function pqRecycleCmdQueueEntry

src/interfaces/libpq/fe-exec.c:1329–1346  ·  view source on GitHub ↗

* pqRecycleCmdQueueEntry * Push a command queue entry onto the freelist. */

Source from the content-addressed store, hash-verified

1327 * Push a command queue entry onto the freelist.
1328 */
1329void
1330pqRecycleCmdQueueEntry(PGconn *conn, PGcmdQueueEntry *entry)
1331{
1332 if (entry == NULL)
1333 return;
1334
1335 /* recyclable entries should not have a follow-on command */
1336 Assert(entry->next == NULL);
1337
1338 if (entry->query)
1339 {
1340 free(entry->query);
1341 entry->query = NULL;
1342 }
1343
1344 entry->next = conn->cmd_queue_recycle;
1345 conn->cmd_queue_recycle = entry;
1346}
1347
1348
1349/*

Callers 7

PQsendGpQuery_sharedFunction · 0.85
PQsendQueryInternalFunction · 0.85
PQsendPrepareFunction · 0.85
PQsendQueryGutsFunction · 0.85
PQsendDescribeFunction · 0.85
pqCommandQueueAdvanceFunction · 0.85
PQpipelineSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected