Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83462de

Browse files
author
Michael Paquier
committed
Remove some internal variables in xlog_internal.h
It serves nothing to replicate such things.
1 parent200d1fd commit83462de

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
externboolis_pg_running(void);
327328

328-
/* access/xlog_internal.h */
329-
#defineXLogSegSize((uint32) XLOG_SEG_SIZE)
330-
#defineXLogSegsPerFile (((uint32) 0xffffffff) / XLogSegSize)
331-
#defineXLogFileSize(XLogSegsPerFile * XLogSegSize)
332-
333329
#defineNextLogSeg(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)

[8]ページ先頭

©2009-2025 Movatter.jp