1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-13 01:00:23 +02:00

Add ioWriteStr() and ioWriteStrLine().

These function names make it clearer what is being written.

The old ioWriteLine() has been repurposed to write buffers.
This commit is contained in:
David Steele
2019-04-22 18:46:29 -04:00
parent 81f652137c
commit c650134a04
14 changed files with 99 additions and 53 deletions

View File

@ -529,7 +529,7 @@ testRun(void)
lockAcquire(cfgOptionStr(cfgOptLockPath), cfgOptionStr(cfgOptStanza), cfgLockType(), 30000, true);
// Let the parent know the lock has been acquired and wait for the parent to allow lock release
ioWriteLine(write, strNew(""));
ioWriteStrLine(write, strNew(""));
ioWriteFlush(write);
ioReadLine(read);
@ -552,7 +552,7 @@ testRun(void)
"unable to push WAL file '000000010000000100000001' to the archive asynchronously after 1 second(s)");
// Notify the child to release the lock
ioWriteLine(write, strNew(""));
ioWriteLine(write, bufNew(0));
ioWriteFlush(write);
}
HARNESS_FORK_PARENT_END();