Optimize vector get last written LSN (#10360)

## Problem

See https://github.com/neondatabase/neon/issues/10281

pg17 performs extra lock/unlock operation when fetching LwLSN.

## Summary of changes

Perform all lookups under one lock, moving initialization of not found
keys to separate loop.

Related Postgres PR:
https://github.com/neondatabase/postgres/pull/553

---------

Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
This commit is contained in:
Konstantin Knizhnik
2025-01-14 07:54:30 +02:00
committed by GitHub
parent 430b556b34
commit a039f8381f
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"v17": [
"17.2",
"9c9e9a78a93aebec2f6a2f54644442d35ffa245c"
"0f8da73ed08d4fc4ee58cccea008c75bfb20baa8"
],
"v16": [
"16.6",