Skip to content

Commit

Permalink
Fix zenith_test_evict mode and clear_buffer_cache() function
Browse files Browse the repository at this point in the history
Using InvalidateBuffer is wrong, because if the page is concurrently
dirtied, it will throw away the dirty page without calling
smgwrite(). In Neon, that means that the last-written LSN update for
the page is missed.

In v16, use the new InvalidateVictimBuffer() function that does what
we need. In v15 and v14, backport the InvalidateVictimBuffer()
function.

Fixes issue #7802
  • Loading branch information
hlinnaka committed May 17, 2024
1 parent e1a9669 commit 03b8e42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vendor/postgres-v14
2 changes: 1 addition & 1 deletion vendor/postgres-v15
2 changes: 1 addition & 1 deletion vendor/postgres-v16

0 comments on commit 03b8e42

Please sign in to comment.