Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dec10ba

Browse files
committed
Mark pg_upgrade's free_db_and_rel_infos() as a static function.
1 parent 3bdfd9c commit dec10ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pg_upgrade/info.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ static void create_rel_filename_map(const char *old_data, const char *new_data,
1818
const DbInfo *old_db, const DbInfo *new_db,
1919
const RelInfo *old_rel, const RelInfo *new_rel,
2020
FileNameMap *map);
21+
static void free_db_and_rel_infos(DbInfoArr *db_arr);
2122
static void get_db_infos(ClusterInfo *cluster);
2223
static void get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo);
2324
static void free_rel_infos(RelInfoArr *rel_arr);
@@ -370,7 +371,7 @@ get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo)
370371
}
371372

372373

373-
void
374+
static void
374375
free_db_and_rel_infos(DbInfoArr *db_arr)
375376
{
376377
int dbnum;

contrib/pg_upgrade/pg_upgrade.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ FileNameMap *gen_db_file_maps(DbInfo *old_db,
388388
DbInfo *new_db, int *nmaps, const char *old_pgdata,
389389
const char *new_pgdata);
390390
void get_db_and_rel_infos(ClusterInfo *cluster);
391-
void free_db_and_rel_infos(DbInfoArr *db_arr);
392391
void print_maps(FileNameMap *maps, int n,
393392
const char *db_name);
394393

0 commit comments

Comments
 (0)