Commit 9fc01922 authored by Bruce Momjian's avatar Bruce Momjian

In test_open_sync(), writes kilobytes as intended, not by bytes.

parent 77ff8408
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment