Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 626092a

Browse files
committed
Message style improvements
1 parent 815fcd0 commit 626092a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/backend/access/transam/timeline.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ readTimeLineHistory(TimeLineID targetTLI)
150150
if (nfields != 3)
151151
ereport(FATAL,
152152
(errmsg("syntax error in history file: %s", fline),
153-
errhint("Expected an XLOG switchpoint location.")));
153+
errhint("Expected a transaction log switchpoint location.")));
154154

155155
if (result && tli <= lasttli)
156156
ereport(FATAL,

src/backend/access/transam/xlog.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3721,7 +3721,7 @@ XLogFileOpen(XLogSegNo segno)
37213721
if (fd < 0)
37223722
ereport(PANIC,
37233723
(errcode_for_file_access(),
3724-
errmsg("could not open xlog file \"%s\": %m", path)));
3724+
errmsg("could not open transaction log file \"%s\": %m", path)));
37253725

37263726
return fd;
37273727
}
@@ -6281,7 +6281,7 @@ StartupXLOG(void)
62816281
ereport(FATAL,
62826282
(errmsg("requested timeline %u is not a child of this server's history",
62836283
recoveryTargetTLI),
6284-
errdetail("Latest checkpoint is at %X/%X on timeline %u, but in the history of the requested timeline, the server forked off from that timeline at %X/%X",
6284+
errdetail("Latest checkpoint is at %X/%X on timeline %u, but in the history of the requested timeline, the server forked off from that timeline at %X/%X.",
62856285
(uint32) (ControlFile->checkPoint >> 32),
62866286
(uint32) ControlFile->checkPoint,
62876287
ControlFile->checkPointCopy.ThisTimeLineID,
@@ -9027,7 +9027,7 @@ checkTimeLineSwitch(XLogRecPtr lsn, TimeLineID newTLI, TimeLineID prevTLI)
90279027
/* Check that the record agrees on what the current (old) timeline is */
90289028
if (prevTLI != ThisTimeLineID)
90299029
ereport(PANIC,
9030-
(errmsg("unexpected prev timeline ID %u (current timeline ID %u) in checkpoint record",
9030+
(errmsg("unexpected previous timeline ID %u (current timeline ID %u) in checkpoint record",
90319031
prevTLI, ThisTimeLineID)));
90329032

90339033
/*

src/backend/replication/walreceiver.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ WalReceiverMain(void)
438438
{
439439
ereport(LOG,
440440
(errmsg("replication terminated by primary server"),
441-
errdetail("End of WAL reached on timeline %u at %X/%X",
441+
errdetail("End of WAL reached on timeline %u at %X/%X.",
442442
startpointTLI,
443443
(uint32) (LogstreamResult.Write >> 32), (uint32) LogstreamResult.Write)));
444444
endofwal = true;
@@ -927,7 +927,7 @@ XLogWalRcvWrite(char *buf, Size nbytes, XLogRecPtr recptr)
927927
if (lseek(recvFile, (off_t) startoff, SEEK_SET) < 0)
928928
ereport(PANIC,
929929
(errcode_for_file_access(),
930-
errmsg("could not seek in log segment %s, to offset %u: %m",
930+
errmsg("could not seek in log segment %s to offset %u: %m",
931931
XLogFileNameP(recvFileTLI, recvSegNo),
932932
startoff)));
933933
recvOff = startoff;

src/backend/replication/walsender.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ StartReplication(StartReplicationCmd *cmd)
485485
(uint32) (cmd->startpoint >> 32),
486486
(uint32) (cmd->startpoint),
487487
cmd->timeline),
488-
errdetail("This server's history forked from timeline %u at %X/%X",
488+
errdetail("This server's history forked from timeline %u at %X/%X.",
489489
cmd->timeline,
490490
(uint32) (switchpoint >> 32),
491491
(uint32) (switchpoint))));

0 commit comments

Comments
 (0)