Skip to content

Commit 24f12d9

Browse files
committed
[PBCKP-402,PBCKP-354] refix "missing contrecord" detection.
Error message is translated according to current locale. So we can't compare it as a string. But `abortedRecPtr` exists exactly for this case, so we can rely on it.
1 parent 9391a1b commit 24f12d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parsexlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ XLogThreadWorker(void *arg)
14461446
* TODO: probably we should abort reading logs at this moment.
14471447
* But we continue as we did with bug present in Pg < 15.
14481448
*/
1449-
strncmp(errormsg, "missing contrecord", 18) == 0))
1449+
!XLogRecPtrIsInvalid(xlogreader->abortedRecPtr)))
14501450
{
14511451
if (SwitchThreadToNextWal(xlogreader, thread_arg))
14521452
continue;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy