Skip to content

Commit 196063d

Browse files
author
Álvaro Herrera
committed
Move enum RecoveryTargetAction to xlogrecovery.h
Commit 70e8186 split out xlogrecovery.c/h and moved some enums related to recovery targets to xlogrecovery.h. However, it seems that the enum RecoveryTargetAction was inadvertently left out by that commit. This commit moves it to xlogrecovery.h for consistency. Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20240904.173013.1132986940678039655.horikyota.ntt@gmail.com
1 parent 228c370 commit 196063d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/include/access/xlog_internal.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -316,16 +316,6 @@ typedef struct XLogRecData
316316
uint32 len; /* length of rmgr data to include */
317317
} XLogRecData;
318318

319-
/*
320-
* Recovery target action.
321-
*/
322-
typedef enum
323-
{
324-
RECOVERY_TARGET_ACTION_PAUSE,
325-
RECOVERY_TARGET_ACTION_PROMOTE,
326-
RECOVERY_TARGET_ACTION_SHUTDOWN,
327-
} RecoveryTargetAction;
328-
329319
struct LogicalDecodingContext;
330320
struct XLogRecordBuffer;
331321

src/include/access/xlogrecovery.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ typedef enum
4040
RECOVERY_TARGET_TIMELINE_NUMERIC,
4141
} RecoveryTargetTimeLineGoal;
4242

43+
/*
44+
* Recovery target action.
45+
*/
46+
typedef enum
47+
{
48+
RECOVERY_TARGET_ACTION_PAUSE,
49+
RECOVERY_TARGET_ACTION_PROMOTE,
50+
RECOVERY_TARGET_ACTION_SHUTDOWN,
51+
} RecoveryTargetAction;
52+
4353
/* Recovery pause states */
4454
typedef enum RecoveryPauseState
4555
{

0 commit comments

Comments
 (0)