@@ -145,7 +145,7 @@ static List *tokenize_inc_file(List *tokens, const char *outer_filename,
145145static bool parse_hba_auth_opt (char * name , char * val , HbaLine * hbaline ,
146146 int elevel , char * * err_msg );
147147static 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 );
149149static ArrayType * gethba_options (HbaLine * hba );
150150static void fill_hba_line (Tuplestorestate * tuple_store , TupleDesc tupdesc ,
151151 int lineno , HbaLine * hba , const char * err_msg );
@@ -1648,20 +1648,22 @@ parse_hba_line(TokenizedLine *tok_line, int elevel)
16481648
16491649
16501650static 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 )
16521654{
16531655 if (list_length (options ) == 0 ||
16541656 list_length (options ) == 1 ||
1655- list_length (options ) == list_length (masters ))
1657+ list_length (options ) == list_length (comparelist ))
16561658 return true;
16571659
16581660 ereport (LOG ,
16591661 (errcode (ERRCODE_CONFIG_FILE_ERROR ),
16601662 errmsg ("the number of %s (%d) must be 1 or the same as the number of %s (%d)" ,
16611663 optionname ,
16621664 list_length (options ),
1663- mastername ,
1664- list_length (masters )
1665+ comparename ,
1666+ list_length (comparelist )
16651667 ),
16661668 errcontext ("line %d of configuration file \"%s\"" ,
16671669 line_num , HbaFileName )));
0 commit comments