mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
In test_open_sync(), writes kilobytes as intended, not by bytes.
This commit is contained in:
parent
77ff840835
commit
9fc0192283
1 changed files with 2 additions and 1 deletions
|
|
@ -421,7 +421,8 @@ test_open_sync(const char *msg, int writes_size)
|
|||
for (ops = 0; ops < ops_per_test; ops++)
|
||||
{
|
||||
for (writes = 0; writes < 16 / writes_size; writes++)
|
||||
if (write(tmpfile, buf, writes_size) != writes_size)
|
||||
if (write(tmpfile, buf, writes_size * 1024) !=
|
||||
writes_size * 1024)
|
||||
die("write failed");
|
||||
if (lseek(tmpfile, 0, SEEK_SET) == -1)
|
||||
die("seek failed");
|
||||
|
|
|
|||
Loading…
Reference in a new issue