【资源池化】DMS侧消息超时时间默认10s

This commit is contained in:
dongning12
2023-08-01 17:06:47 +08:00
parent 24d1772b70
commit e5311bd6a1
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,