don't try to update the legacy last-written LSN cache with new communicator

This commit is contained in:
Heikki Linnakangas
2025-07-30 22:01:04 +03:00
parent c0360644a7
commit 49204b6a59
+11 -5
View File
@@ -437,11 +437,17 @@ neon_wallog_page(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum, co
forknum, LSN_FORMAT_ARGS(lsn))));
}
/*
* Remember the LSN on this page. When we read the page again, we must
* read the same or newer version of it.
*/
neon_set_lwlsn_block(lsn, InfoFromSMgrRel(reln), forknum, blocknum);
if (!neon_use_communicator_worker)
{
/*
* Remember the LSN on this page. When we read the page again, we must
* read the same or newer version of it.
*
* (With the new communicator, the caller will make a write-request
* for this page, which updates the last-written LSN too)
*/
neon_set_lwlsn_block(lsn, InfoFromSMgrRel(reln), forknum, blocknum);
}
}
/*