ssl: Remove static var tracking tls_init_hook warnings If the TLS init hook is defined in conjunction with ssl_sni we issue a warning to help the user re-configure the cluster. To avoid drowning the log in warnings, we log only once instead of once per host. This removes the static variable tracking the warning to aid future multithreading efforts.
Author: Daniel Gustafsson <[email protected]> Reviewed-by: Tristan Partin <[email protected]> Reviewed-by: Andreas Karlsson <[email protected]> Reviewed-by: Yilin Zhang <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9e526a14d7cb36c24d6faebf32df31251a97edc9 Modified Files -------------- src/backend/libpq/be-secure-openssl.c | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-)
