Fix source code typos.
authorBo Peng <pengbo@sraoss.co.jp>
Mon, 23 Jun 2025 02:54:30 +0000 (11:54 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Mon, 23 Jun 2025 02:54:30 +0000 (11:54 +0900)
src/auth/pool_passwd.c
src/include/auth/pool_passwd.h
src/pcp_con/recovery.c
src/watchdog/wd_lifecheck.c

index cb37fdea41fbadc1fb38d6288e6e400098d3a06c..41bd38f07872fcc15a5e477085984030b620702f 100644 (file)
@@ -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;
 
index 9ec244b31afcada6e91b6f7770a27ed51f2fb512..ace61160c4f53ba2dfc053bd09599153c9954d5b 100644 (file)
@@ -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 */
index a104b4c068f788bb7ae03c4dfe34edfaca0c21cd..598c1a28d10b97ee28eefbe4b130b5fff95d5306 100644 (file)
@@ -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",
index ce99a4000459bc0626790d906a1e589dec9bf16f..713fd4ebf93ce639e2c268d78ac12ef076fff6da 100644 (file)
@@ -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;