Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb29ab2

Browse files
committed
Minor header cleanup for the new iovec code.
Remove redundant function declaration and improve header comment inpg_iovec.h. Move the new declaration in fd.h next to a group of moresimilar functions.
1 parentfef5b47 commitfb29ab2

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

‎src/include/port/pg_iovec.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*-------------------------------------------------------------------------
22
*
33
* pg_iovec.h
4-
* Header forthevectored I/O functionsinsrc/port/p{read,write}.c.
4+
* Header for vectored I/O functions, to useinplace of <sys/uio.h>.
55
*
66
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
@@ -51,9 +51,4 @@ extern ssize_t pg_preadv(int fd, const struct iovec *iov, int iovcnt, off_t offs
5151
externssize_tpg_pwritev(intfd,conststructiovec*iov,intiovcnt,off_toffset);
5252
#endif
5353

54-
externssize_tpg_pwritev_with_retry(intfd,
55-
conststructiovec*iov,
56-
intiovcnt,
57-
off_toffset);
58-
5954
#endif/* PG_IOVEC_H */

‎src/include/storage/fd.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ extern intpg_fsync_no_writethrough(int fd);
154154
externintpg_fsync_writethrough(intfd);
155155
externintpg_fdatasync(intfd);
156156
externvoidpg_flush_data(intfd,off_toffset,off_tamount);
157+
externssize_tpg_pwritev_with_retry(intfd,
158+
conststructiovec*iov,
159+
intiovcnt,
160+
off_toffset);
157161
externintpg_truncate(constchar*path,off_tlength);
158162
externvoidfsync_fname(constchar*fname,boolisdir);
159163
externintfsync_fname_ext(constchar*fname,boolisdir,boolignore_perm,intelevel);
@@ -162,10 +166,6 @@ extern intdurable_unlink(const char *fname, int loglevel);
162166
externintdurable_rename_excl(constchar*oldfile,constchar*newfile,intloglevel);
163167
externvoidSyncDataDirectory(void);
164168
externintdata_sync_elevel(intelevel);
165-
externssize_tpg_pwritev_with_retry(intfd,
166-
conststructiovec*iov,
167-
intiovcnt,
168-
off_toffset);
169169

170170
/* Filename components */
171171
#definePG_TEMP_FILES_DIR "pgsql_tmp"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp