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

Function CleanupOnePartition

src/backend/executor/nodeDynamicSeqscan.c:248–261  ·  view source on GitHub ↗

* CleanupOnePartition * Cleans up a partition's relation and releases all locks. */

Source from the content-addressed store, hash-verified

246 * Cleans up a partition's relation and releases all locks.
247 */
248static void
249CleanupOnePartition(DynamicSeqScanState *scanState)
250{
251 Assert(NULL != scanState);
252
253 if (scanState->seqScanState)
254 {
255 ExecEndSeqScan(scanState->seqScanState);
256 scanState->seqScanState = NULL;
257 Assert(scanState->ss.ss_currentRelation != NULL);
258 table_close(scanState->ss.ss_currentRelation, NoLock);
259 scanState->ss.ss_currentRelation = NULL;
260 }
261}
262
263/*
264 * DynamicSeqScanEndCurrentScan

Callers 2

ExecDynamicSeqScanFunction · 0.70

Calls 2

ExecEndSeqScanFunction · 0.85
table_closeFunction · 0.85

Tested by

no test coverage detected