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

Function InstrStopNodeAsync

src/backend/executor/instrument.c:151–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151static void
152InstrStopNodeAsync(Instrumentation *instr, uint64 nTuples)
153{
154 uint64 save_tuplecount = instr->tuplecount;
155 InstrStopNodeSync(instr, nTuples);
156 if (instr->running)
157 {
158 /*
159 * In async mode, if the plan node hadn't emitted any tuples before,
160 * this might be the first tuple
161 */
162 if (instr->async_mode && save_tuplecount < 1)
163 instr->firsttuple = INSTR_TIME_GET_DOUBLE(instr->counter);
164 }
165}
166
167void
168InstrStopNode(Instrumentation *instr, uint64 nTuples)

Callers 1

InstrStopNodeFunction · 0.85

Calls 1

InstrStopNodeSyncFunction · 0.85

Tested by

no test coverage detected