Skip to content

Commit 0086902

Browse files
committed
In pg_test_fsync, use K(1024) rather than k(1000) for write size units.
1 parent 159e3d8 commit 0086902

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

contrib/pg_test_fsync/pg_test_fsync.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ test_sync(int writes_per_op)
175175
bool fs_warning = false;
176176

177177
if (writes_per_op == 1)
178-
printf("\nCompare file sync methods using one %dk write:\n", XLOG_BLCKSZ_K);
178+
printf("\nCompare file sync methods using one %dK write:\n", XLOG_BLCKSZ_K);
179179
else
180-
printf("\nCompare file sync methods using two %dk writes:\n", XLOG_BLCKSZ_K);
180+
printf("\nCompare file sync methods using two %dK writes:\n", XLOG_BLCKSZ_K);
181181
printf("(in wal_sync_method preference order, except fdatasync\n");
182182
printf("is Linux's default)\n");
183183

@@ -391,14 +391,14 @@ static void
391391
test_open_syncs(void)
392392
{
393393
printf("\nCompare open_sync with different write sizes:\n");
394-
printf("(This is designed to compare the cost of writing 16k\n");
394+
printf("(This is designed to compare the cost of writing 16K\n");
395395
printf("in different write open_sync sizes.)\n");
396396

397-
test_open_sync("16k open_sync write", 16);
398-
test_open_sync(" 8k open_sync writes", 8);
399-
test_open_sync(" 4k open_sync writes", 4);
400-
test_open_sync(" 2k open_sync writes", 2);
401-
test_open_sync(" 1k open_sync writes", 1);
397+
test_open_sync("16K open_sync write", 16);
398+
test_open_sync(" 8K open_sync writes", 8);
399+
test_open_sync(" 4K open_sync writes", 4);
400+
test_open_sync(" 2K open_sync writes", 2);
401+
test_open_sync(" 1K open_sync writes", 1);
402402
}
403403

404404
/*
@@ -517,7 +517,7 @@ test_non_sync(void)
517517
/*
518518
* Test a simple write without fsync
519519
*/
520-
printf("\nNon-sync'ed %dk writes:\n", XLOG_BLCKSZ_K);
520+
printf("\nNon-Sync'ed %dK writes:\n", XLOG_BLCKSZ_K);
521521
printf(LABEL_FORMAT, "write");
522522
fflush(stdout);
523523

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy