mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-02 13:00:37 +00:00
Handle case of 0 replay_lsn
This commit is contained in:
@@ -2231,7 +2231,7 @@ Retry:
|
||||
{
|
||||
XLogRecPtr page_lsn = PageGetLSN((Page)getpage_resp->page);
|
||||
XLogRecPtr replay_lsn = GetXLogReplayRecPtr(NULL);
|
||||
if (page_lsn > replay_lsn)
|
||||
if (replay_lsn != 0 && page_lsn > replay_lsn)
|
||||
{
|
||||
/* Alternative to throw error is to repeat the query with request_lsn=replay_lsn */
|
||||
ereport(ERROR,
|
||||
|
||||
Reference in New Issue
Block a user