From d5456ab0bcf35adeaafb06c7a43fc684389de42c Mon Sep 17 00:00:00 2001
From: Donghang Lin <donghanglin@gmail.com>
Date: Sun, 21 Dec 2025 07:46:36 -0800
Subject: [PATCH] Fix the comment for snapshot field BtreeCheckState.

The comment was not updated in commit 6bd469d which fixed the snapshot
usage. it's used for both heapallindexed and uniqueness checking now.

The reasoning in 6bd469d is not accurate. The original problem actually
comes from 7f563c0 rather than 5ae2087. Correct it in this message.
---
 contrib/amcheck/verify_nbtree.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/contrib/amcheck/verify_nbtree.c b/contrib/amcheck/verify_nbtree.c
index f91392a3a49..545c9b2cf32 100644
--- a/contrib/amcheck/verify_nbtree.c
+++ b/contrib/amcheck/verify_nbtree.c
@@ -92,9 +92,13 @@ typedef struct BtreeCheckState
 	BufferAccessStrategy checkstrategy;
 
 	/*
-	 * Info for uniqueness checking. Fill these fields once per index check.
+	 * Info for uniqueness checking. Fill this field once per index check.
 	 */
 	IndexInfo  *indexinfo;
+
+	/**
+	 * Table scan snapshot for heapallindexed and uniqueness checking.
+	 */
 	Snapshot	snapshot;
 
 	/*
-- 
2.49.0

