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 4cfaad7b36d7005aeb30789e8754ebac0a21d83c Author: Soumyadeep Chakraborty <[email protected]> AuthorDate: Tue Dec 27 10:00:39 2022 -0800 dsnap: Remove dead function GetCurrentDistributedSnapshotWithLocalMapping() has been dead since b3f300b9457. --- src/backend/utils/time/snapmgr.c | 13 ------------- src/include/utils/snapmgr.h | 1 - 2 files changed, 14 deletions(-) diff --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/snapmgr.c index 514fe5d1f7..ddf2194eea 100644 --- a/src/backend/utils/time/snapmgr.c +++ b/src/backend/utils/time/snapmgr.c @@ -2842,16 +2842,3 @@ XidInMVCCSnapshot_Local(TransactionId xid, Snapshot snapshot) return false; } - -DistributedSnapshotWithLocalMapping * -GetCurrentDistributedSnapshotWithLocalMapping() -{ - if (!FirstSnapshotSet) - return NULL; - - Assert(CurrentSnapshot); - if (CurrentSnapshot->haveDistribSnapshot) - return &CurrentSnapshot->distribSnapshotWithLocalMapping; - - return NULL; -} diff --git a/src/include/utils/snapmgr.h b/src/include/utils/snapmgr.h index 5a93cada7c..83b2beb6e7 100644 --- a/src/include/utils/snapmgr.h +++ b/src/include/utils/snapmgr.h @@ -132,7 +132,6 @@ extern void AtSubAbort_Snapshot(int level); extern void AtEOXact_Snapshot(bool isCommit, bool resetXmin); extern void LogDistributedSnapshotInfo(Snapshot snapshot, const char *prefix); -extern DistributedSnapshotWithLocalMapping *GetCurrentDistributedSnapshotWithLocalMapping(void); extern void ImportSnapshot(const char *idstr); extern bool XactHasExportedSnapshots(void); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
