Mark pg_upgrade's free_db_and_rel_infos() as a static function.
This commit is contained in:
parent
3bdfd9cb9e
commit
dec10ba4c5
@ -18,6 +18,7 @@ static void create_rel_filename_map(const char *old_data, const char *new_data,
|
|||||||
const DbInfo *old_db, const DbInfo *new_db,
|
const DbInfo *old_db, const DbInfo *new_db,
|
||||||
const RelInfo *old_rel, const RelInfo *new_rel,
|
const RelInfo *old_rel, const RelInfo *new_rel,
|
||||||
FileNameMap *map);
|
FileNameMap *map);
|
||||||
|
static void free_db_and_rel_infos(DbInfoArr *db_arr);
|
||||||
static void get_db_infos(ClusterInfo *cluster);
|
static void get_db_infos(ClusterInfo *cluster);
|
||||||
static void get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo);
|
static void get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo);
|
||||||
static void free_rel_infos(RelInfoArr *rel_arr);
|
static void free_rel_infos(RelInfoArr *rel_arr);
|
||||||
@ -370,7 +371,7 @@ get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
static void
|
||||||
free_db_and_rel_infos(DbInfoArr *db_arr)
|
free_db_and_rel_infos(DbInfoArr *db_arr)
|
||||||
{
|
{
|
||||||
int dbnum;
|
int dbnum;
|
||||||
|
@ -388,7 +388,6 @@ FileNameMap *gen_db_file_maps(DbInfo *old_db,
|
|||||||
DbInfo *new_db, int *nmaps, const char *old_pgdata,
|
DbInfo *new_db, int *nmaps, const char *old_pgdata,
|
||||||
const char *new_pgdata);
|
const char *new_pgdata);
|
||||||
void get_db_and_rel_infos(ClusterInfo *cluster);
|
void get_db_and_rel_infos(ClusterInfo *cluster);
|
||||||
void free_db_and_rel_infos(DbInfoArr *db_arr);
|
|
||||||
void print_maps(FileNameMap *maps, int n,
|
void print_maps(FileNameMap *maps, int n,
|
||||||
const char *db_name);
|
const char *db_name);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user