diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index c7047738b6..676d518b1a 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -2504,7 +2504,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible) errmsg("could not write to log file %s " "at offset %u, length %zu: %m", XLogFileNameP(ThisTimeLineID, openLogSegNo), - startoffset, nbytes))); + startoffset, nleft))); } nleft -= written; from += written;