Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c6da8d

Browse files
author
Artur Zakirov
committed
SimpleXLogPageRead(): exit from function if WAL segment doesn't exist
1 parent 0bdffbc commit 2c6da8d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

parsexlog.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ SimpleXLogPageRead(XLogReaderState *xlogreader, XLogRecPtr targetPagePtr,
224224
return -1;
225225
}
226226
}
227+
/* Exit without error if WAL segment doesn't exist */
228+
else
229+
return -1;
227230
}
228231

229232
/*

0 commit comments

Comments
 (0)