Skip to content

Commit

Permalink
change comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMurloc committed Dec 14, 2023
1 parent ab444e7 commit b757ec5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/backend/gpopt/gpdbwrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2510,10 +2510,11 @@ static bool mdcache_invalidation_counter_registered = false;
static int64 mdcache_invalidation_counter = 0;
static int64 last_mdcache_invalidation_counter = 0;

// if we have cached a relation without an index, because that index cannot
// be used in the current snapshot (for more info see src/backend/access/heap/README.HOT),
// we save TransactionXmin. If TransactionXmin changes later, the cache will
// be reset and the relation will be reloaded with that index.
// If we have cached a relation without an index, because that index cannot
// be used in the current snapshot (for more info see
// src/backend/access/heap/README.HOT), we save TransactionXmin. If
// TransactionXmin changes later, the cache will be reset and the relation will
// be reloaded with that index.
static TransactionId mdcache_transaction_xmin = InvalidTransactionId;

static void
Expand Down
4 changes: 2 additions & 2 deletions src/include/gpopt/gpdbwrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -687,14 +687,14 @@ gpos::ULONG CountLeafPartTables(Oid oidRelation);
bool MDCacheNeedsReset(void);

// Check that the index is usable in the current snapshot and if not, save the
// xmin of the current snapshot. returns true if the index is not usable and
// xmin of the current snapshot. Returns true if the index is not usable and
// should be skipped.
bool MDCacheSetTransientState(Relation index_rel);

// reset TransactionXmin value that we saved
void MDCacheResetTransientState(void);

// check if TransactionXmin value that we saved are valid
// returns true if cache is in transient state
bool MDCacheInTransientState(void);

// returns true if a query cancel is requested in GPDB
Expand Down

0 comments on commit b757ec5

Please sign in to comment.