fix optimizer histogram memory leak in KVCACHE

This commit is contained in:
wangt1xiuyi
2023-02-09 15:55:39 +00:00
committed by ob-robot
parent 5134763d1e
commit 44302ab27f
19 changed files with 289 additions and 153 deletions

View File

@ -431,20 +431,5 @@ int ObAnalyzeStmtResolver::resolve_sample_clause_info(const ParseNode *sample_cl
return ret;
}
int ObAnalyzeStmtResolver::get_bucket_size(const ParseNode *node,
int64_t &bucket_num)
{
int ret = OB_SUCCESS;
if (NULL == node) {
// do nothing
} else if (T_INT != node->type_) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected node type", K(ret));
} else {
bucket_num = node->value_;
}
return ret;
}
} /* namespace sql */
} /* namespace oceanbase */

View File

@ -50,9 +50,6 @@ private:
ObAnalyzeStmt &analyze_stmt);
int resolve_sample_clause_info(const ParseNode *sample_clause_node,
ObAnalyzeStmt &analyze_stmt);
int get_bucket_size(const ParseNode *node, int64_t &bucket_num);
// disallow copy
DISALLOW_COPY_AND_ASSIGN(ObAnalyzeStmtResolver);
};