8000 Adjust error message for partial writes in WAL segments · postgrespro/postgres@f2d84a4 · GitHub
[go: up one dir, main page]

Skip to content
  • Commit f2d84a4

    Browse files
    committed
    Adjust error message for partial writes in WAL segments
    93473c6 has removed openLogOff, changing on the way the error message which is used to report partial writes to WAL segments. The newly-introduced error message used the offset up to which the write has happened, keeping always the same total length to write. This changes the error message so as the number of bytes left to write are reported. Reported-by: Michael Paquier Author: Robert Haas Discussion: https://postgr.es/m/20190306235251.GA17293@paquier.xyz
    1 parent fc84c05 commit f2d84a4

    File tree

    1 file changed

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

    1 file changed

    +1
    -1
    lines changed

    src/backend/access/transam/xlog.c

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -2504,7 +2504,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible)
    25042504
    errmsg("could not write to log file %s "
    25052505
    "at offset %u, length %zu: %m",
    25062506
    XLogFileNameP(ThisTimeLineID, openLogSegNo),
    2507-
    startoffset, nbytes)));
    2507+
    startoffset, nleft)));
    25082508
    }
    25092509
    nleft -= written;
    25102510
    from += written;

    0 commit comments

    Comments
     (0)
    0