Perform page LSN check only for v3 version of protocol

This commit is contained in:
Kosntantin Knizhnik
2025-07-17 23:19:30 +03:00
committed by Konstantin Knizhnik
parent 32b801ea1c
commit b41b85f8ec

View File

@@ -1080,6 +1080,8 @@ prefetch_do_request(PrefetchRequest *slot, neon_request_lsns *force_request_lsns
static void
check_page_lsn(NeonGetPageResponse* resp)
{
if (neon_protocol_version < 3) /* no information to check */
return;
if (PageGetLSN(resp->page) > resp->req.hdr.not_modified_since)
neon_log(PANIC, "Invalid getpage response version: %X/%08X is higher than last modified LSN %X/%08X",
LSN_FORMAT_ARGS(PageGetLSN(resp->page)),