!1427 修复开启SSL情况下,订阅加解密password失败的问题

Merge pull request !1427 from pengjiong/pubsub_encrypt_bug
This commit is contained in:
opengauss-bot
2022-01-05 01:49:49 +00:00
committed by Gitee

View File

@ -343,7 +343,7 @@ static bool ReadKeyContentFromFile(KeyMode mode, const char* cipherkeyfile, cons
/* Note: Data Source use initdb key file by default (datasource.key.* not given) */
global_rand_file = &g_rand_file_content[INITDB_NOCLOUDOBS_TYPE];
global_cipher_file = &g_cipher_file_content[INITDB_NOCLOUDOBS_TYPE];
} else if (mode == SOURCE_MODE || mode == HADR_MODE) {
} else if (mode == SOURCE_MODE || mode == HADR_MODE || mode == USER_MAPPING_MODE || mode == SUBSCRIPTION_MODE) {
/*
* For Data Source:
* read key from file (datasource.key.*): we do not cache these keys here