v1-0001-Update-EnableTimeoutParams-timeout-type-comment.patch

application/octet-stream

Filename: v1-0001-Update-EnableTimeoutParams-timeout-type-comment.patch
Type: application/octet-stream
Part: 0
Message: Update EnableTimeoutParams timeout type comment

Patch

Format: format-patch
Series: patch v1-0001
Subject: Update EnableTimeoutParams timeout type comment
File+
src/include/utils/timeout.h 1 1
From 280e3d11ac47a65127827bf1fff5bad920983fd0 Mon Sep 17 00:00:00 2001
From: alterego655 <824662526@qq.com>
Date: Wed, 1 Jul 2026 09:31:49 +0800
Subject: [PATCH v1] Update EnableTimeoutParams timeout type comment

The TimeoutType enum also supports TMPARAM_EVERY, but the field comment
only mentioned TMPARAM_AFTER and TMPARAM_AT. Update it to match the enum.
---
 src/include/utils/timeout.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/include/utils/timeout.h b/src/include/utils/timeout.h
index 0965b590b34..3ee09d421ca 100644
--- a/src/include/utils/timeout.h
+++ b/src/include/utils/timeout.h
@@ -58,7 +58,7 @@ typedef enum TimeoutType
 typedef struct
 {
 	TimeoutId	id;				/* timeout to set */
-	TimeoutType type;			/* TMPARAM_AFTER or TMPARAM_AT */
+	TimeoutType type;			/* TMPARAM_AFTER/AT/EVERY */
 	int			delay_ms;		/* only used for TMPARAM_AFTER/EVERY */
 	TimestampTz fin_time;		/* only used for TMPARAM_AT */
 } EnableTimeoutParams;
-- 
2.51.0