mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
Fix MarkGUCPrefixReserved() to check all options.
This bug was only present on v15. MarkGUCPrefixReserved() is new in v15, and in v16, it was rewritten to use a hash table and the new implementation did not have this bug. Author: Karina Litskevich, Ekaterina Sokolova Discussion: https://www.postgresql.org/message-id/CACiT8ibqyC=_g1n6FXyFJvFW0BEjAH3_5aGqUSFeEp8GpnVrhw@mail.gmail.com
This commit is contained in:
parent
907d3dd531
commit
a5f312c58d
@ -9723,6 +9723,7 @@ MarkGUCPrefixReserved(const char *className)
|
|||||||
num_guc_variables--;
|
num_guc_variables--;
|
||||||
memmove(&guc_variables[i], &guc_variables[i + 1],
|
memmove(&guc_variables[i], &guc_variables[i + 1],
|
||||||
(num_guc_variables - i) * sizeof(struct config_generic *));
|
(num_guc_variables - i) * sizeof(struct config_generic *));
|
||||||
|
i--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user