diff --git a/src/backend/utils/time/snapmgr.c b/src/backend/utils/time/snapmgr.c index 514fe5d1f7e..ddf2194eead 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 5a93cada7c7..83b2beb6e7a 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);