!3896 【资源池化】解决消息超时时间默认1s导致的smon流程无法成功的问题

Merge pull request !3896 from 董宁/bugfix5_up
This commit is contained in:
opengauss_bot
2023-08-01 12:40:13 +00:00
committed by Gitee
2 changed files with 3 additions and 0 deletions

View File

@ -377,6 +377,7 @@ static void setDMSProfile(dms_profile_t* profile)
profile->enable_reform = (unsigned char)dms_attr->enable_reform;
profile->load_balance_mode = 1; /* primary-standby */
profile->parallel_thread_num = dms_attr->parallel_thread_num;
profile->max_wait_time = DMS_MSG_MAX_WAIT_TIME;
if (dms_attr->enable_ssl && g_instance.attr.attr_security.EnableSSL) {
InitDmsSSL();

View File

@ -186,6 +186,8 @@
#define SS_ACQUIRE_LOCK_DO_NOT_WAIT 0
#define SS_ACQUIRE_LOCK_RETRY_INTERVAL (50) // 50ms
#define DMS_MSG_MAX_WAIT_TIME (10 * 1000) // 10s
typedef enum SSBroadcastOp {
BCAST_GET_XMIN = 0,
BCAST_CANCEL_TRX_FOR_SWITCHOVER,