|
|
@ -1133,7 +1133,7 @@ ProcessXLogDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len, |
|
|
|
if (stream->walmethod->write(walfile, copybuf + hdr_len + bytes_written, |
|
|
|
if (stream->walmethod->write(walfile, copybuf + hdr_len + bytes_written, |
|
|
|
bytes_to_write) != bytes_to_write) |
|
|
|
bytes_to_write) != bytes_to_write) |
|
|
|
{ |
|
|
|
{ |
|
|
|
pg_log_error("could not write %u bytes to WAL file \"%s\": %s", |
|
|
|
pg_log_error("could not write %d bytes to WAL file \"%s\": %s", |
|
|
|
bytes_to_write, current_walfile_name, |
|
|
|
bytes_to_write, current_walfile_name, |
|
|
|
stream->walmethod->getlasterror()); |
|
|
|
stream->walmethod->getlasterror()); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|