[CP] fix: Error loading system variables during session deserialization

This commit is contained in:
obdev
2023-08-17 17:21:54 +08:00
committed by ob-robot
parent c550060ac7
commit 65b74f7848

View File

@ -2018,6 +2018,9 @@ int ObBasicSessionInfo::sys_variable_exists(const ObString &var, bool &is_exists
LOG_ERROR("got store_idx is invalid", K(store_idx), K(ret));
} else {
is_exists = (NULL != sys_vars_[store_idx]);
if (NULL != sys_vars_[store_idx]) {
is_exists = !sys_vars_[store_idx]->is_base_value_empty();
}
}
return ret;
}