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

Function getCurrentSlice

src/backend/executor/execUtils.c:1768–1779  ·  view source on GitHub ↗

* A forgiving slice table indexer that returns the indexed Slice* or NULL */

Source from the content-addressed store, hash-verified

1766 * A forgiving slice table indexer that returns the indexed Slice* or NULL
1767 */
1768ExecSlice *
1769getCurrentSlice(EState *estate, int sliceIndex)
1770{
1771 SliceTable *sliceTable = estate->es_sliceTable;
1772
1773 if (sliceTable &&
1774 sliceIndex >= 0 &&
1775 sliceIndex < sliceTable->numSlices)
1776 return &sliceTable->slices[sliceIndex];
1777
1778 return NULL;
1779}
1780
1781/* Should the slice run on the QD?
1782 *

Callers 6

ExplainPrintPlanFunction · 0.85
standard_ExecutorRunFunction · 0.85
getGpExecIdentityFunction · 0.85
mppExecutorFinishupFunction · 0.85
mppExecutorWaitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected