Skip to content

Commit

Permalink
dsnap: Remove dead function
Browse files Browse the repository at this point in the history
GetCurrentDistributedSnapshotWithLocalMapping() has been dead since
b3f300b.
  • Loading branch information
soumyadeep2007 authored and avamingli committed Dec 30, 2024
1 parent 0e958d8 commit 03f5f34
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions src/backend/utils/time/snapmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
1 change: 0 additions & 1 deletion src/include/utils/snapmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 03f5f34

Please sign in to comment.