MCPcopy Create free account
hub / github.com/apache/impala / AppendError

Function AppendError

be/src/util/error-util.cc:108–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void AppendError(ErrorLogMap* map, const ErrorMsg& e) {
109 ErrorLogEntryPB* target = &(*map)[e.error()];
110 if (e.error() == TErrorCode::GENERAL) {
111 target->add_messages(e.msg());
112 } else {
113 if (target->messages_size() == 0) {
114 target->add_messages(e.msg());
115 }
116 target->set_count(target->count() + 1);
117 }
118}
119
120void ClearErrorMap(ErrorLogMap& errors) {
121 for (auto& err : errors) {

Callers 2

LogErrorMethod · 0.85
TESTFunction · 0.85

Calls 2

errorMethod · 0.45
countMethod · 0.45

Tested by 1

TESTFunction · 0.68