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

Function tts_minimal_store_tuple

src/backend/executor/execTuples.c:636–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634}
635
636static void
637tts_minimal_store_tuple(TupleTableSlot *slot, MinimalTuple mtup, bool shouldFree)
638{
639 MinimalTupleTableSlot *mslot = (MinimalTupleTableSlot *) slot;
640
641 tts_minimal_clear(slot);
642
643 Assert(!TTS_SHOULDFREE(slot));
644 Assert(TTS_EMPTY(slot));
645
646 slot->tts_flags &= ~TTS_FLAG_EMPTY;
647 slot->tts_nvalid = 0;
648 mslot->off = 0;
649
650 mslot->mintuple = mtup;
651 Assert(mslot->tuple == &mslot->minhdr);
652 mslot->minhdr.t_len = mtup->t_len + MINIMAL_TUPLE_OFFSET;
653 mslot->minhdr.t_data = (HeapTupleHeader) ((char *) mtup - MINIMAL_TUPLE_OFFSET);
654 /* no need to set t_self or t_tableOid since we won't allow access */
655
656 if (shouldFree)
657 slot->tts_flags |= TTS_FLAG_SHOULDFREE;
658}
659
660
661/*

Callers 2

ExecStoreMinimalTupleFunction · 0.85

Calls 1

tts_minimal_clearFunction · 0.85

Tested by

no test coverage detected