mirror of
https://github.com/postgres/postgres.git
synced 2026-04-22 14:47:29 -04:00
Modernize struct declarations in snapbuild.h
Just a cosmetic cleanup.
This commit is contained in:
parent
33bf7318f9
commit
69c11f0545
1 changed files with 11 additions and 12 deletions
|
|
@ -15,6 +15,14 @@
|
|||
#include "access/xlogdefs.h"
|
||||
#include "utils/snapmgr.h"
|
||||
|
||||
/*
|
||||
* forward declarations in this file
|
||||
*/
|
||||
typedef struct ReorderBuffer ReorderBuffer;
|
||||
typedef struct SnapBuild SnapBuild;
|
||||
typedef struct xl_heap_new_cid xl_heap_new_cid;
|
||||
typedef struct xl_running_xacts xl_running_xacts;
|
||||
|
||||
/*
|
||||
* Please keep get_snapbuild_state_desc() (located in the pg_logicalinspect
|
||||
* module) updated if a change needs to be made to SnapBuildState.
|
||||
|
|
@ -50,20 +58,11 @@ typedef enum
|
|||
SNAPBUILD_CONSISTENT = 2,
|
||||
} SnapBuildState;
|
||||
|
||||
/* forward declare so we don't have to include snapbuild_internal.h */
|
||||
struct SnapBuild;
|
||||
typedef struct SnapBuild SnapBuild;
|
||||
|
||||
/* forward declare so we don't have to include reorderbuffer.h */
|
||||
struct ReorderBuffer;
|
||||
|
||||
/* forward declare so we don't have to include heapam_xlog.h */
|
||||
struct xl_heap_new_cid;
|
||||
struct xl_running_xacts;
|
||||
|
||||
extern void CheckPointSnapBuild(void);
|
||||
|
||||
extern SnapBuild *AllocateSnapshotBuilder(struct ReorderBuffer *reorder,
|
||||
extern SnapBuild *AllocateSnapshotBuilder(ReorderBuffer *reorder,
|
||||
TransactionId xmin_horizon, XLogRecPtr start_lsn,
|
||||
bool need_full_snapshot,
|
||||
bool in_slot_creation,
|
||||
|
|
@ -91,9 +90,9 @@ extern bool SnapBuildProcessChange(SnapBuild *builder, TransactionId xid,
|
|||
XLogRecPtr lsn);
|
||||
extern void SnapBuildProcessNewCid(SnapBuild *builder, TransactionId xid,
|
||||
XLogRecPtr lsn,
|
||||
struct xl_heap_new_cid *xlrec);
|
||||
xl_heap_new_cid *xlrec);
|
||||
extern void SnapBuildProcessRunningXacts(SnapBuild *builder, XLogRecPtr lsn,
|
||||
struct xl_running_xacts *running);
|
||||
xl_running_xacts *running);
|
||||
extern void SnapBuildSerializationPoint(SnapBuild *builder, XLogRecPtr lsn);
|
||||
|
||||
extern bool SnapBuildSnapshotExists(XLogRecPtr lsn);
|
||||
|
|
|
|||
Loading…
Reference in a new issue