sopport the parameter with the same name in postgresql.conf

This commit is contained in:
zhengxue
2020-12-08 10:39:26 +08:00
parent 87b322b5f9
commit 3482dd6408

View File

@ -21550,12 +21550,9 @@ int find_guc_option(
}
}
/* The line of last one will be returned */
if (matchTimes > 0) {
return targetLine;
}
return INVALID_LINES_IDX;
/* The line of last one will be returned, otherwise it return invaild line */
return (matchTimes > 0) ? targetLine : INVALID_LINES_IDX;
}
/*
* @@GaussDB@@