提交 50c2ea92 编写于 作者: S seuwebber 提交者: LINGuanRen

[to #40604219]fix bug ObScanner::user_var_map_.map_ init twice

上级 d4c2794b
...@@ -226,7 +226,9 @@ int ObScanner::set_session_var_map(const sql::ObSQLSessionInfo* p_session_info) ...@@ -226,7 +226,9 @@ int ObScanner::set_session_var_map(const sql::ObSQLSessionInfo* p_session_info)
if (current_map.size() > 0) { if (current_map.size() > 0) {
// Init user var map on demand when setting to avoid wasting CPU and memory when there is no user var // Init user var map on demand when setting to avoid wasting CPU and memory when there is no user var
// synchronization // synchronization
if (!user_var_map_.get_val_map().created()) {
OZ(user_var_map_.init(1024 * 1024 * 2, 256, NULL)); OZ(user_var_map_.init(1024 * 1024 * 2, 256, NULL));
}
for (sql::ObSessionValMap::VarNameValMap::const_iterator iter = current_map.get_val_map().begin(); for (sql::ObSessionValMap::VarNameValMap::const_iterator iter = current_map.get_val_map().begin();
OB_SUCC(ret) && iter != current_map.get_val_map().end(); OB_SUCC(ret) && iter != current_map.get_val_map().end();
++iter) { ++iter) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册