[CP] fix: Error loading system variables during session deserialization
This commit is contained in:
@ -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));
|
LOG_ERROR("got store_idx is invalid", K(store_idx), K(ret));
|
||||||
} else {
|
} else {
|
||||||
is_exists = (NULL != sys_vars_[store_idx]);
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user