diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2020-11-04 10:38:39 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2020-11-04 10:38:39 +0200 |
commit | ffb4e27e9c5ea87f9fecb7036dfc7cc1f38169b6 (patch) | |
tree | 3f58baa46e5c461e53db8bd00a0f4380766305d5 /src/bin/pg_rewind/file_ops.h | |
parent | ac22929a2613e122708bd0172508ac863c51c1cc (diff) | |
download | postgresql-ffb4e27e9c5ea87f9fecb7036dfc7cc1f38169b6.tar.gz postgresql-ffb4e27e9c5ea87f9fecb7036dfc7cc1f38169b6.zip |
pg_rewind: Move syncTargetDirectory() to file_ops.c
For consistency. All the other low-level functions that operate on the
target directory are in file_ops.c.
Reviewed-by: Michael Paquier
Discussion: https://www.postgresql.org/message-id/0c5b3783-af52-3ee5-f8fa-6e794061f70d%40iki.fi
Diffstat (limited to 'src/bin/pg_rewind/file_ops.h')
-rw-r--r-- | src/bin/pg_rewind/file_ops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_rewind/file_ops.h b/src/bin/pg_rewind/file_ops.h index 025f24141c9..d8466385cf5 100644 --- a/src/bin/pg_rewind/file_ops.h +++ b/src/bin/pg_rewind/file_ops.h @@ -19,6 +19,7 @@ extern void remove_target_file(const char *path, bool missing_ok); extern void truncate_target_file(const char *path, off_t newsize); extern void create_target(file_entry_t *t); extern void remove_target(file_entry_t *t); +extern void sync_target_dir(void); extern char *slurpFile(const char *datadir, const char *path, size_t *filesize); |