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

Function CatalogCacheCompareTuple

src/backend/utils/cache/catcache.c:374–388  ·  view source on GitHub ↗

* CatalogCacheCompareTuple * * Compare a tuple to the passed arguments. */

Source from the content-addressed store, hash-verified

372 * Compare a tuple to the passed arguments.
373 */
374static inline bool
375CatalogCacheCompareTuple(const CatCache *cache, int nkeys,
376 const Datum *cachekeys,
377 const Datum *searchkeys)
378{
379 const CCFastEqualFN *cc_fastequal = cache->cc_fastequal;
380 int i;
381
382 for (i = 0; i < nkeys; i++)
383 {
384 if (!(cc_fastequal[i]) (cachekeys[i], searchkeys[i]))
385 return false;
386 }
387 return true;
388}
389
390
391#ifdef CATCACHE_STATS

Callers 2

SearchCatCacheInternalFunction · 0.85
SearchCatCacheListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected