Skip to content

Commit b111a6b

Browse files
knizhnikKonstantin Knizhnik
authored andcommitted
Remove Get/SetZenithCurrentClusterSize from Postgres core (#397)
Co-authored-by: Konstantin Knizhnik <[email protected]>
1 parent 6fcf3a6 commit b111a6b

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

src/backend/access/transam/xlog.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -799,11 +799,6 @@ typedef struct XLogCtlData
799799
/* neon: copy of startup's RedoStartLSN for walproposer's use */
800800
XLogRecPtr RedoStartLSN;
801801

802-
/*
803-
* size of a timeline in zenith pageserver.
804-
* used to enforce timeline size limit.
805-
*/
806-
uint64 zenithCurrentClusterSize;
807802
slock_t info_lck; /* locks shared variables shown above */
808803
} XLogCtlData;
809804

@@ -9209,29 +9204,6 @@ GetRedoStartLsn(void)
92099204
return XLogCtl->RedoStartLSN;
92109205
}
92119206

9212-
9213-
uint64
9214-
GetZenithCurrentClusterSize(void)
9215-
{
9216-
uint64 size;
9217-
SpinLockAcquire(&XLogCtl->info_lck);
9218-
size = XLogCtl->zenithCurrentClusterSize;
9219-
SpinLockRelease(&XLogCtl->info_lck);
9220-
9221-
return size;
9222-
}
9223-
9224-
9225-
void
9226-
SetZenithCurrentClusterSize(uint64 size)
9227-
{
9228-
SpinLockAcquire(&XLogCtl->info_lck);
9229-
XLogCtl->zenithCurrentClusterSize = size;
9230-
SpinLockRelease(&XLogCtl->info_lck);
9231-
}
9232-
9233-
9234-
92359207
/*
92369208
* GetFlushRecPtr -- Returns the current flush position, ie, the last WAL
92379209
* position known to be fsync'd to disk.

src/include/access/xlog.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,6 @@ extern XLogRecPtr GetLastWrittenLSN(RelFileNode relfilenode, ForkNumber forknum,
366366

367367
extern XLogRecPtr GetRedoStartLsn(void);
368368

369-
extern void SetZenithCurrentClusterSize(uint64 size);
370-
extern uint64 GetZenithCurrentClusterSize(void);
371-
372369
extern bool PromoteIsTriggered(void);
373370
extern bool CheckPromoteSignal(void);
374371
extern void WakeupRecovery(void);

0 commit comments

Comments
 (0)