Skip to content

Commit af9ab67

Browse files
knizhnikKonstantin Knizhnik
andauthored
Remove Get/SetZenithCurrentClusterSize from Postgres core (#398)
Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
1 parent 80cef88 commit af9ab67

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

src/backend/access/transam/xlog.c

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

591-
/*
592-
* size of a timeline in zenith pageserver.
593-
* used to enforce timeline size limit.
594-
*/
595-
uint64 zenithCurrentClusterSize;
596591
slock_t info_lck; /* locks shared variables shown above */
597592
} XLogCtlData;
598593

@@ -6280,29 +6275,6 @@ GetRedoStartLsn(void)
62806275
return XLogCtl->RedoStartLSN;
62816276
}
62826277

6283-
6284-
uint64
6285-
GetZenithCurrentClusterSize(void)
6286-
{
6287-
uint64 size;
6288-
SpinLockAcquire(&XLogCtl->info_lck);
6289-
size = XLogCtl->zenithCurrentClusterSize;
6290-
SpinLockRelease(&XLogCtl->info_lck);
6291-
6292-
return size;
6293-
}
6294-
6295-
6296-
void
6297-
SetZenithCurrentClusterSize(uint64 size)
6298-
{
6299-
SpinLockAcquire(&XLogCtl->info_lck);
6300-
XLogCtl->zenithCurrentClusterSize = size;
6301-
SpinLockRelease(&XLogCtl->info_lck);
6302-
}
6303-
6304-
6305-
63066278
/*
63076279
* GetFlushRecPtr -- Returns the current flush position, ie, the last WAL
63086280
* position known to be fsync'd to disk. This should only be used on a

src/include/access/xlog.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,6 @@ extern XLogRecPtr GetLastWrittenLSN(RelFileNode relfilenode, ForkNumber forknum,
265265
extern void SetRedoStartLsn(XLogRecPtr RedoStartLSN);
266266
extern XLogRecPtr GetRedoStartLsn(void);
267267

268-
extern void SetZenithCurrentClusterSize(uint64 size);
269-
extern uint64 GetZenithCurrentClusterSize(void);
270-
271-
272268
extern void SetWalWriterSleeping(bool sleeping);
273269

274270
extern void assign_max_wal_size(int newval, void *extra);

0 commit comments

Comments
 (0)