Skip to content

Commit

Permalink
[walproposer] [contrib/zenith] [refer neondatabase#395] Do no align s…
Browse files Browse the repository at this point in the history
…art replication position in wal_proppser to segment boundary
  • Loading branch information
knizhnik authored and tristan957 committed Feb 6, 2024
1 parent 66fb5b4 commit 616f45a
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 182 deletions.
4 changes: 4 additions & 0 deletions contrib/zenith/pagestore_smgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "storage/relfilenode.h"
#include "storage/smgr.h"
#include "access/xlogdefs.h"
#include "postmaster/interrupt.h"
#include "storage/bufmgr.h"
#include "fmgr.h"
#include "miscadmin.h"
Expand Down Expand Up @@ -243,6 +244,9 @@ zenith_wallog_page(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum,
{
XLogRecPtr lsn = PageGetLSN(buffer);

if (ShutdownRequestPending)
return;

/*
* If the page was not WAL-logged before eviction then we can lose its modification.
* PD_WAL_LOGGED bit is used to mark pages which are wal-logged.
Expand Down
Loading

0 comments on commit 616f45a

Please sign in to comment.