From 67bd246cef78ed5856b15642ed233a8e3d9563cd Mon Sep 17 00:00:00 2001 From: TotaJ Date: Thu, 23 Dec 2021 14:24:38 +0800 Subject: [PATCH] Fix subscription decrypt password failed. --- src/common/port/cipher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/port/cipher.cpp b/src/common/port/cipher.cpp index 635043b6c..3c676dce4 100644 --- a/src/common/port/cipher.cpp +++ b/src/common/port/cipher.cpp @@ -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