Skip to content

Commit 3d0c3a4

Browse files
committed
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 8e293e6. Author: Atsushi Torikoshi <torikoshia@oss.nttdata.com> Discussion: https://postgr.es/m/6df1e949d1d759ad2767c18e5845963e@oss.nttdata.com
1 parent 0bd762e commit 3d0c3a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/storage/aio/aio_io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ pgaio_io_get_op_name(PgAioHandle *ioh)
181181
case PGAIO_OP_INVALID:
182182
return "invalid";
183183
case PGAIO_OP_READV:
184-
return "read";
184+
return "readv";
185185
case PGAIO_OP_WRITEV:
186-
return "write";
186+
return "writev";
187187
}
188188

189189
return NULL; /* silence compiler */

0 commit comments

Comments
 (0)