+ TriggerInstrumentation *ti = rInfo->ri_TrigInstrument; + + if (ti && (ti->instr.need_bufusage || ti->instr.need_walusage)) + InstrAccum(instr_stack.current, &ti->instr);
I think there's one more bug here, isn't ti an array? This seems to
only process the first entry, not all of them.
+InstrPopStackTo(Instrumentation *prev)
+{
+ Assert(instr_stack.stack_size > 0);
+ instr_stack.stack_size--;
+ instr_stack.current = prev;
+}
+
Shouldn't this have the same additional assertion as InstrPopStack?
