summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2025-05-21 06:58:03 +0000
committerMichael Paquier2025-05-21 06:58:03 +0000
commit3d0c3a418fc2448a156164a96804dd6d7c8516fe (patch)
tree8da80bd04ef1d240c24010187f43e38ca69e82b7
parent0bd762e81f6c73679b4f3072d9d9f359d47e43ab (diff)
Adjust operation names of pg_aios to match the documentation
pg_aios used the terms "read" and "write" for vectored I/O read and write operations, respectively. The documentation refers to them as "readv" and "writev", and the code uses internally the terms PGAIO_OP_READV and PGAIO_OP_WRITEV for them, as of "vectored". This commit adjusts these operation names to match with the code and the documentation. Oversight in 8e293e689bab. Author: Atsushi Torikoshi <[email protected]> Discussion: https://postgr.es/m/[email protected]
-rw-r--r--src/backend/storage/aio/aio_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/aio/aio_io.c b/src/backend/storage/aio/aio_io.c
index 00e176135a6..520b5077df2 100644
--- a/src/backend/storage/aio/aio_io.c
+++ b/src/backend/storage/aio/aio_io.c
@@ -181,9 +181,9 @@ pgaio_io_get_op_name(PgAioHandle *ioh)
case PGAIO_OP_INVALID:
return "invalid";
case PGAIO_OP_READV:
- return "read";
+ return "readv";
case PGAIO_OP_WRITEV:
- return "write";
+ return "writev";
}
return NULL; /* silence compiler */