Move enum RecoveryTargetAction to xlogrecovery.h
authorÁlvaro Herrera <alvherre@kurilemu.de>
Wed, 23 Jul 2025 09:02:13 +0000 (11:02 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Wed, 23 Jul 2025 09:02:13 +0000 (11:02 +0200)
Commit 70e81861fadd 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

src/include/access/xlog_internal.h
src/include/access/xlogrecovery.h

index 2cf8d55d706d19627e4ecd7179c056e5e940038e..cc06fc29ab2b2063d71b2e7e1f7ff1eba3125a22 100644 (file)
@@ -316,16 +316,6 @@ typedef struct XLogRecData
    uint32      len;            /* length of rmgr data to include */
 } XLogRecData;
 
-/*
- * Recovery target action.
- */
-typedef enum
-{
-   RECOVERY_TARGET_ACTION_PAUSE,
-   RECOVERY_TARGET_ACTION_PROMOTE,
-   RECOVERY_TARGET_ACTION_SHUTDOWN,
-}          RecoveryTargetAction;
-
 struct LogicalDecodingContext;
 struct XLogRecordBuffer;
 
index 91446303024ae737987e1e25dd927b279bebdbee..8e475e266d18e3b4b09f9c58945a3ef049a280b0 100644 (file)
@@ -40,6 +40,16 @@ typedef enum
    RECOVERY_TARGET_TIMELINE_NUMERIC,
 } RecoveryTargetTimeLineGoal;
 
+/*
+ * Recovery target action.
+ */
+typedef enum
+{
+   RECOVERY_TARGET_ACTION_PAUSE,
+   RECOVERY_TARGET_ACTION_PROMOTE,
+   RECOVERY_TARGET_ACTION_SHUTDOWN,
+}          RecoveryTargetAction;
+
 /* Recovery pause states */
 typedef enum RecoveryPauseState
 {