v20250930-0015-BufFileLoadBuffer-comment.patch
text/x-patch
Filename: v20250930-0015-BufFileLoadBuffer-comment.patch
Type: text/x-patch
Part: 14
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v20250930-0015
Subject: BufFileLoadBuffer - comment
| File | + | − |
|---|---|---|
| src/backend/storage/file/buffile.c | 3 | 0 |
From c850e93ef3f145eb7018e2ff88060ec0e6bd7c47 Mon Sep 17 00:00:00 2001 From: Tomas Vondra <tomas@vondra.me> Date: Mon, 29 Sep 2025 23:46:04 +0200 Subject: [PATCH v20250930 15/22] BufFileLoadBuffer - comment --- src/backend/storage/file/buffile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/storage/file/buffile.c b/src/backend/storage/file/buffile.c index 1b07ef0c801..c8d2999a64c 100644 --- a/src/backend/storage/file/buffile.c +++ b/src/backend/storage/file/buffile.c @@ -662,6 +662,9 @@ BufFileLoadBuffer(BufFile *file) * Read compressed data, curOffset differs with pos It reads less * data than it returns to caller So the curOffset must be * advanced here based on compressed size + * + * XXX I don't understand what this comment is meant to say. Maybe + * it got broken by the earlier cleanup, not sure. */ nread = FileRead(thisfile, buff, -- 2.51.0