Skip to content

Commit

Permalink
rename functions
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMurloc committed Dec 13, 2023
1 parent 85ad303 commit fcbc402
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/backend/gpopt/gpdbwrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,7 @@ gpdb::IsTypeRange(Oid typid)
// xmin of the current snapshot. returns true if the index is not usable and
// should be skipped.
bool
gpdb::SetMDCacheTransientState(Relation index_rel)
gpdb::MDCacheSetTransientState(Relation index_rel)
{
GP_WRAP_START;
{
Expand All @@ -2770,13 +2770,13 @@ gpdb::SetMDCacheTransientState(Relation index_rel)
}

void
gpdb::ResetMDCacheTransientState()
gpdb::MDCacheResetTransientState()
{
mdcache_transaction_xmin = InvalidTransactionId;
}

bool
gpdb::IsMDCacheTransient()
gpdb::MDCacheInTransientState()
{
GP_WRAP_START;
{
Expand Down
2 changes: 1 addition & 1 deletion src/backend/gpopt/translate/CTranslatorDXLToPlStmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ CTranslatorDXLToPlStmt::GetPlannedStmtFromDXL(const CDXLNode *dxlnode,
}
}

planned_stmt->transientPlan = gpdb::IsMDCacheTransient();
planned_stmt->transientPlan = gpdb::MDCacheInTransientState();

return planned_stmt;
}
Expand Down
4 changes: 2 additions & 2 deletions src/backend/gpopt/translate/CTranslatorRelcacheToDXL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ CTranslatorRelcacheToDXL::RetrieveRelIndexInfoForPartTable(CMemoryPool *mp,
// mark the plan we are generating and cache as transient.
// See src/backend/access/heap/README.HOT for discussion.
if (IsIndexSupported(index_rel) &&
!gpdb::SetMDCacheTransientState(index_rel))
!gpdb::MDCacheSetTransientState(index_rel))
{
CMDIdGPDB *mdid_index =
GPOS_NEW(mp) CMDIdGPDB(IMDId::EmdidInd, index_oid);
Expand Down Expand Up @@ -372,7 +372,7 @@ CTranslatorRelcacheToDXL::RetrieveRelIndexInfoForNonPartTable(CMemoryPool *mp,
// mark the plan we are generating and cache as transient.
// See src/backend/access/heap/README.HOT for discussion.
if (IsIndexSupported(index_rel) &&
!gpdb::SetMDCacheTransientState(index_rel))
!gpdb::MDCacheSetTransientState(index_rel))
{
CMDIdGPDB *mdid_index =
GPOS_NEW(mp) CMDIdGPDB(IMDId::EmdidInd, index_oid);
Expand Down
4 changes: 2 additions & 2 deletions src/backend/gpopt/utils/COptTasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,13 @@ COptTasks::OptimizeTask(void *ptr)
{
CMDCache::Init();
CMDCache::SetCacheQuota(optimizer_mdcache_size * 1024L);
gpdb::ResetMDCacheTransientState();
gpdb::MDCacheResetTransientState();
}
else if (reset_mdcache)
{
CMDCache::Reset();
CMDCache::SetCacheQuota(optimizer_mdcache_size * 1024L);
gpdb::ResetMDCacheTransientState();
gpdb::MDCacheResetTransientState();
}
else if (CMDCache::ULLGetCacheQuota() !=
(ULLONG) optimizer_mdcache_size * 1024L)
Expand Down
6 changes: 3 additions & 3 deletions src/include/gpopt/gpdbwrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,11 @@ void GPDBMemoryContextDelete(MemoryContext context);

bool IsTypeRange(Oid typid);

bool SetMDCacheTransientState(Relation index_rel);
bool MDCacheSetTransientState(Relation index_rel);

void ResetMDCacheTransientState();
void MDCacheResetTransientState();

bool IsMDCacheTransient();
bool MDCacheInTransientState();

} //namespace gpdb

Expand Down

0 comments on commit fcbc402

Please sign in to comment.