Skip to content

Commit

Permalink
[walproposer] [contrib/zenith] [refer #395] Do no align sart replicat…
Browse files Browse the repository at this point in the history
…ion position in wal_proppser to segment boundary
  • Loading branch information
knizhnik authored and tristan957 committed May 10, 2024
1 parent 9e0d321 commit 55ebeac
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 55ebeac

Please sign in to comment.