Skip to content

Commit 1f81b48

Browse files
committed
Mark CatalogSnapshotData static
Like CurrentSnapshotData, it should not be accessed directly outside snapmgr.c.
1 parent d5a7bd5 commit 1f81b48

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/backend/utils/time/snapmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
*/
8181
static SnapshotData CurrentSnapshotData = {SNAPSHOT_MVCC};
8282
static SnapshotData SecondarySnapshotData = {SNAPSHOT_MVCC};
83-
SnapshotData CatalogSnapshotData = {SNAPSHOT_MVCC};
83+
static SnapshotData CatalogSnapshotData = {SNAPSHOT_MVCC};
8484
SnapshotData SnapshotSelfData = {SNAPSHOT_SELF};
8585
SnapshotData SnapshotAnyData = {SNAPSHOT_ANY};
8686
SnapshotData SnapshotToastData = {SNAPSHOT_TOAST};

src/include/utils/snapmgr.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ extern PGDLLIMPORT TransactionId RecentXmin;
2828
extern PGDLLIMPORT SnapshotData SnapshotSelfData;
2929
extern PGDLLIMPORT SnapshotData SnapshotAnyData;
3030
extern PGDLLIMPORT SnapshotData SnapshotToastData;
31-
extern PGDLLIMPORT SnapshotData CatalogSnapshotData;
3231

3332
#define SnapshotSelf (&SnapshotSelfData)
3433
#define SnapshotAny (&SnapshotAnyData)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy