fix truncate 4.1 problem

This commit is contained in:
obdev
2023-01-28 18:20:42 +08:00
committed by ob-robot
parent 50024b39cd
commit dd47101ce6
8 changed files with 58 additions and 28 deletions

View File

@ -506,7 +506,7 @@ int ObGlobalStatProxy::inner_get_snapshot_gc_scn_(
EXTRACT_VARCHAR_FIELD_MYSQL(*result, "column_value", snapshot_gc_scn_str);
char *endptr = NULL;
char buf[common::MAX_ZONE_INFO_LENGTH];
char buf[common::MAX_ZONE_INFO_LENGTH] = {0};
if (OB_SUCC(ret)) {
const int64_t str_len = snapshot_gc_scn_str.length();
const int64_t buf_len = sizeof(buf);
@ -595,7 +595,7 @@ int ObGlobalStatProxy::select_ddl_epoch_for_update(
EXTRACT_VARCHAR_FIELD_MYSQL(*result, "column_value", ddl_epoch_str);
char *endptr = NULL;
char buf[common::MAX_ZONE_INFO_LENGTH];
char buf[common::MAX_ZONE_INFO_LENGTH] = {0};
if (OB_SUCC(ret)) {
const int64_t str_len = ddl_epoch_str.length();
const int64_t buf_len = sizeof(buf);