Skip to content

Commit 5abac3c

Browse files
author
Konstantin Knizhnik
committed
Fix bug in SimpleLruDownloadSegment
1 parent b24f0a4 commit 5abac3c

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/slru.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ SimpleLruDownloadSegment(SlruCtl ctl, int pageno, char const* path)
641641
return -1;
642642

643643
/* If page is beyond latest written page, then do not try to download segment from server */
644-
if (pageno < ctl->shared->latest_page_number)
644+
if (pageno > ctl->shared->latest_page_number)
645645
return -1;
646646

647647
if (!dummy_smgr_rel.smgr)

0 commit comments

Comments
 (0)