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

Function RootSliceIndex

src/backend/executor/execUtils.c:2470–2485  ·  view source on GitHub ↗

* Provide root slice of locally executing slice. */

Source from the content-addressed store, hash-verified

2468 * Provide root slice of locally executing slice.
2469 */
2470int
2471RootSliceIndex(EState *estate)
2472{
2473 int result = 0;
2474
2475 if (estate->es_sliceTable)
2476 {
2477 ExecSlice *localSlice = &estate->es_sliceTable->slices[LocallyExecutingSliceIndex(estate)];
2478
2479 result = localSlice->rootIndex;
2480
2481 Assert(result >= 0 && estate->es_sliceTable->numSlices);
2482 }
2483
2484 return result;
2485}
2486
2487
2488#ifdef USE_ASSERT_CHECKING

Callers 6

cdbexplain_sendExecStatsFunction · 0.85
cdbdisp_dispatchXFunction · 0.85
standard_ExecutorStartFunction · 0.85
InitPlanFunction · 0.85
AssignGangsFunction · 0.85
getGpExecIdentityFunction · 0.85

Calls 1

Tested by

no test coverage detected