1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

Minor cleanup of pg_rewind.

Update comments and function names to use the terms "source" and "target"
consistently. Some places were calling them remote and local instead, which
was confusing.

Fix incorrect comment in extractPageInfo on database creation record - it
was wrong on what happens for databases created in the target that don't
exist in source.
This commit is contained in:
Heikki Linnakangas
2015-04-15 22:52:00 +03:00
parent 0d8a22a9ac
commit 41457fcf97
8 changed files with 58 additions and 52 deletions

View File

@@ -62,8 +62,8 @@ typedef struct file_entry_t
typedef struct filemap_t
{
/*
* New entries are accumulated to a linked list, in process_remote_file
* and process_local_file.
* New entries are accumulated to a linked list, in process_source_file
* and process_target_file.
*/
file_entry_t *first;
file_entry_t *last;
@@ -94,9 +94,12 @@ extern void calculate_totals(void);
extern void print_filemap(void);
/* Functions for populating the filemap */
extern void process_remote_file(const char *path, file_type_t type, size_t newsize, const char *link_target);
extern void process_local_file(const char *path, file_type_t type, size_t newsize, const char *link_target);
extern void process_block_change(ForkNumber forknum, RelFileNode rnode, BlockNumber blkno);
extern void process_source_file(const char *path, file_type_t type,
size_t newsize, const char *link_target);
extern void process_target_file(const char *path, file_type_t type,
size_t newsize, const char *link_target);
extern void process_block_change(ForkNumber forknum, RelFileNode rnode,
BlockNumber blkno);
extern void filemap_finalize(void);
#endif /* FILEMAP_H */