Skip to content

Commit 83462de

Browse files
author
Michael Paquier
committed
Remove some internal variables in xlog_internal.h
It serves nothing to replicate such things.
1 parent 200d1fd commit 83462de

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pg_rman.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include "pgut/pgut.h"
1818
#include "access/xlogdefs.h"
19+
#include "access/xlog_internal.h"
1920
#include "utils/pg_crc.h"
2021
#include "parray.h"
2122

@@ -325,14 +326,9 @@ extern void remove_not_digit(char *buf, size_t len, const char *str);
325326
/* in pgsql_src/pg_ctl.c */
326327
extern bool is_pg_running(void);
327328

328-
/* access/xlog_internal.h */
329-
#define XLogSegSize ((uint32) XLOG_SEG_SIZE)
330-
#define XLogSegsPerFile (((uint32) 0xffffffff) / XLogSegSize)
331-
#define XLogFileSize (XLogSegsPerFile * XLogSegSize)
332-
333329
#define NextLogSeg(logId, logSeg) \
334330
do { \
335-
if ((logSeg) >= XLogSegsPerFile-1) \
331+
if ((logSeg) >= XLogSegmentsPerXLogId - 1) \
336332
{ \
337333
(logId)++; \
338334
(logSeg) = 0; \

0 commit comments

Comments
 (0)