aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/file_ops.h
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2020-11-04 10:38:39 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2020-11-04 10:38:39 +0200
commitffb4e27e9c5ea87f9fecb7036dfc7cc1f38169b6 (patch)
tree3f58baa46e5c461e53db8bd00a0f4380766305d5 /src/bin/pg_rewind/file_ops.h
parentac22929a2613e122708bd0172508ac863c51c1cc (diff)
downloadpostgresql-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.h1
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);