From 2b3b36c8f2b359a348b5197e2feba232969d42d5 Mon Sep 17 00:00:00 2001 From: Tianchen Zhang Date: Mon, 2 Feb 2026 18:49:45 +0800 Subject: [PATCH v1] Fix incorrect directory macro in KillExistingWALSummaries() There is a misuse of macro when we output directory information. Which should be `WALSUMMARYDIR` instead of `ARCHSTATDIR`. Author: Tianchen Zhang --- src/bin/pg_resetwal/pg_resetwal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_resetwal/pg_resetwal.c b/src/bin/pg_resetwal/pg_resetwal.c index 431b83a..f7b8196 100644 --- a/src/bin/pg_resetwal/pg_resetwal.c +++ b/src/bin/pg_resetwal/pg_resetwal.c @@ -1111,7 +1111,7 @@ KillExistingWALSummaries(void) pg_fatal("could not read directory \"%s\": %m", WALSUMMARYDIR); if (closedir(xldir)) - pg_fatal("could not close directory \"%s\": %m", ARCHSTATDIR); + pg_fatal("could not close directory \"%s\": %m", WALSUMMARYDIR); } /* -- 2.39.3