This is an automated email from the ASF dual-hosted git repository.

avamingli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 47aa78fa5ec53f70df1e2abbdfefff107ec5779b
Author: Ashwin Agrawal <[email protected]>
AuthorDate: Mon Apr 17 19:09:13 2023 -0700

    Remove dead code related to memtuples, as no more stored hashtables
---
 src/include/access/memtup.h | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/src/include/access/memtup.h b/src/include/access/memtup.h
index 89edda1089..e3bc1cad5d 100644
--- a/src/include/access/memtup.h
+++ b/src/include/access/memtup.h
@@ -69,13 +69,6 @@ typedef MemTupleData *MemTuple;
 #define MEMTUP_LARGETUP  2
 #define MEMTUP_HASEXTERNAL      4
 
-/*
- * MEMTUP_HAS_MATCH is a temporary flag used during hash joins. It's
- * equivalent to HEAP_TUPLE_HAS_MATCH for HeapTuples, but in GPDB we
- * store MemTuples in hash table instead of HeapTuples.
- */
-#define MEMTUP_HAS_MATCH 0x40000000
-
 #define MEMTUP_ALIGN(LEN) TYPEALIGN(8, (LEN)) 
 #define MEMTUPLE_LEN_FITSHORT 0xFFF0
 
@@ -150,24 +143,6 @@ extern MemTuple memtuple_form_to(MemTupleBinding *pbind, 
Datum *values, bool *is
 extern void memtuple_deform(MemTuple mtup, MemTupleBinding *pbind, Datum 
*datum, bool *isnull);
 extern void memtuple_deform_misaligned(MemTuple mtup, MemTupleBinding *pbind, 
Datum *datum, bool *isnull);
 
-static inline bool
-MemTupleHasMatch(MemTuple mtup)
-{
-       return (mtup->PRIVATE_mt_len & MEMTUP_HAS_MATCH) != 0;
-}
-
-static inline void
-MemTupleSetMatch(MemTuple mtup)
-{
-       mtup->PRIVATE_mt_len |= MEMTUP_HAS_MATCH;
-}
-
-static inline void
-MemTupleClearMatch(MemTuple mtup)
-{
-       mtup->PRIVATE_mt_len &= ~MEMTUP_HAS_MATCH;
-}
-
 extern bool MemTupleHasExternal(MemTuple mtup, MemTupleBinding *pbind);
 
 extern bool memtuple_has_misaligned_attribute(MemTuple mtup, MemTupleBinding 
*pbind);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to