From 83f12e1505f95b02c89eabec55d2f9a061ccaa6b Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Mon, 23 Jun 2025 11:54:30 +0900 Subject: [PATCH] Fix source code typos. --- src/auth/pool_passwd.c | 2 +- src/include/auth/pool_passwd.h | 2 +- src/pcp_con/recovery.c | 2 +- src/watchdog/wd_lifecheck.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/auth/pool_passwd.c b/src/auth/pool_passwd.c index cb37fdea4..41bd38f07 100644 --- a/src/auth/pool_passwd.c +++ b/src/auth/pool_passwd.c @@ -702,7 +702,7 @@ read_pool_key(char *key_file_path) * -2: password is not found */ int -chceck_password_type_is_not_md5(char *username, char *password_in_config) +check_password_type_is_not_md5(char *username, char *password_in_config) { PasswordType passwordType = PASSWORD_TYPE_UNKNOWN; diff --git a/src/include/auth/pool_passwd.h b/src/include/auth/pool_passwd.h index 9ec244b31..ace61160c 100644 --- a/src/include/auth/pool_passwd.h +++ b/src/include/auth/pool_passwd.h @@ -85,5 +85,5 @@ extern char *get_decrypted_password(const char *shadow_pass); extern char *read_pool_key(char *key_file_path); extern char *get_pgpool_config_user_password(char *username, char *password_in_config); extern void delete_passwordMapping(PasswordMapping * pwdMapping); -extern int chceck_password_type_is_not_md5(char *username, char *password_in_config); +extern int check_password_type_is_not_md5(char *username, char *password_in_config); #endif /* POOL_PASSWD_H */ diff --git a/src/pcp_con/recovery.c b/src/pcp_con/recovery.c index a104b4c06..598c1a28d 100644 --- a/src/pcp_con/recovery.c +++ b/src/pcp_con/recovery.c @@ -95,7 +95,7 @@ start_recovery(int recovery_node) conn = connect_backend_libpq(backend); if (conn == NULL) { - if(chceck_password_type_is_not_md5(pool_config->recovery_user, pool_config->recovery_password) == -1) + if(check_password_type_is_not_md5(pool_config->recovery_user, pool_config->recovery_password) == -1) { ereport(ERROR, (errmsg("the password of recovery_user %s is invalid format", diff --git a/src/watchdog/wd_lifecheck.c b/src/watchdog/wd_lifecheck.c index ce99a4000..713fd4ebf 100644 --- a/src/watchdog/wd_lifecheck.c +++ b/src/watchdog/wd_lifecheck.c @@ -1017,11 +1017,11 @@ wd_ping_pgpool(LifeCheckNode * node, char* password) conn = create_conn(node->hostName, node->pgpoolPort, password); if (conn == NULL) { - if(chceck_password_type_is_not_md5(pool_config->wd_lifecheck_user, pool_config->wd_lifecheck_password) == -1) + if(check_password_type_is_not_md5(pool_config->wd_lifecheck_user, pool_config->wd_lifecheck_password) == -1) { ereport(ERROR, (errmsg("the password of wd_lifecheck_user %s is invalid format", - pool_config->recovery_user), + pool_config->wd_lifecheck_user), errdetail("wd_lifecheck_password is not allowed to be md5 hashed format"))); } return WD_NG; -- 2.39.5