diff --git a/tools/upgrade/upgrade_post.py b/tools/upgrade/upgrade_post.py index 2ecf004fc9c5cd5bd9c1e8eada8604d18b140658..8de81507b2b816c2b0cbf9271bac8f436dfe9c90 100755 --- a/tools/upgrade/upgrade_post.py +++ b/tools/upgrade/upgrade_post.py @@ -8132,18 +8132,8 @@ # ## 31. check the _max_trx_size #def check_max_trx_size_config(query_cur, cur): -# (desc, results) = query_cur.exec_query( -# """ -# select distinct(value) from __all_sys_parameter where name like '_max_trx_size' -# """) -# if len(results) != 1: -# raise MyError("failed to get config of _max_trx_size") -# -# if results[0][0] == '100M': -# set_parameter(cur, '_max_trx_size', '100G') -# logging.info('set _max_trx_size to default value 100G') -# else: -# logging.info('leave _max_trx_size untouch ' + str(results[0][0])) +# set_parameter(cur, '_max_trx_size', '100G') +# logging.info('set _max_trx_size to default value 100G') # ## 开始升级前的检查 #def do_check(my_host, my_port, my_user, my_passwd, upgrade_params): diff --git a/tools/upgrade/upgrade_pre.py b/tools/upgrade/upgrade_pre.py index b221fd9cd85f3c1c633abce2f0df6c64e5a894a9..87709f185e400d35e6a98ac2aecf269aa262c844 100755 --- a/tools/upgrade/upgrade_pre.py +++ b/tools/upgrade/upgrade_pre.py @@ -8132,18 +8132,8 @@ # ## 31. check the _max_trx_size #def check_max_trx_size_config(query_cur, cur): -# (desc, results) = query_cur.exec_query( -# """ -# select distinct(value) from __all_sys_parameter where name like '_max_trx_size' -# """) -# if len(results) != 1: -# raise MyError("failed to get config of _max_trx_size") -# -# if results[0][0] == '100M': -# set_parameter(cur, '_max_trx_size', '100G') -# logging.info('set _max_trx_size to default value 100G') -# else: -# logging.info('leave _max_trx_size untouch ' + str(results[0][0])) +# set_parameter(cur, '_max_trx_size', '100G') +# logging.info('set _max_trx_size to default value 100G') # ## 开始升级前的检查 #def do_check(my_host, my_port, my_user, my_passwd, upgrade_params):