@@ -145,7 +145,7 @@ static List *tokenize_inc_file(List *tokens, const char *outer_filename,
145
145
static bool parse_hba_auth_opt (char * name ,char * val ,HbaLine * hbaline ,
146
146
int elevel ,char * * err_msg );
147
147
static bool verify_option_list_length (List * options ,const char * optionname ,
148
- List * masters ,const char * mastername ,int line_num );
148
+ List * comparelist ,const char * comparename ,int line_num );
149
149
static ArrayType * gethba_options (HbaLine * hba );
150
150
static void fill_hba_line (Tuplestorestate * tuple_store ,TupleDesc tupdesc ,
151
151
int lineno ,HbaLine * hba ,const char * err_msg );
@@ -1648,20 +1648,22 @@ parse_hba_line(TokenizedLine *tok_line, int elevel)
1648
1648
1649
1649
1650
1650
static bool
1651
- verify_option_list_length (List * options ,const char * optionname ,List * masters ,const char * mastername ,int line_num )
1651
+ verify_option_list_length (List * options ,const char * optionname ,
1652
+ List * comparelist ,const char * comparename ,
1653
+ int line_num )
1652
1654
{
1653
1655
if (list_length (options )== 0 ||
1654
1656
list_length (options )== 1 ||
1655
- list_length (options )== list_length (masters ))
1657
+ list_length (options )== list_length (comparelist ))
1656
1658
return true;
1657
1659
1658
1660
ereport (LOG ,
1659
1661
(errcode (ERRCODE_CONFIG_FILE_ERROR ),
1660
1662
errmsg ("the number of %s (%d) must be 1 or the same as the number of %s (%d)" ,
1661
1663
optionname ,
1662
1664
list_length (options ),
1663
- mastername ,
1664
- list_length (masters )
1665
+ comparename ,
1666
+ list_length (comparelist )
1665
1667
),
1666
1668
errcontext ("line %d of configuration file \"%s\"" ,
1667
1669
line_num ,HbaFileName )));