Unify the msg of 'Memory exceed limit' (#1737)

The new msg of limit exceed: "Memory exceed limit. %msg, Backend:%ip, fragment:%id Used:% , Limit:%. xxx".
This commit unifies the msg of 'Memory exceed limit' such as check_query_state, RETURN_IF_LIMIT_EXCEEDED and LIMIT_EXCEEDED.
This commit is contained in:
EmmyMiao87
2019-09-03 10:42:16 +08:00
committed by ZHAO Chun
parent a80e9996a6
commit 9f5e5717d4
17 changed files with 58 additions and 60 deletions

View File

@ -724,10 +724,10 @@ Status ExecNode::enable_deny_reservation_debug_action() {
}
*/
Status ExecNode::QueryMaintenance(RuntimeState* state) {
Status ExecNode::QueryMaintenance(RuntimeState* state, const std::string& msg) {
// TODO chenhao , when introduce latest AnalyticEvalNode open it
// ScalarExprEvaluator::FreeLocalAllocations(evals_to_free_);
return state->check_query_state();
return state->check_query_state(msg);
}
}