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

Function MergeErrorLogEntry

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

Source from the content-addressed store, hash-verified

79}
80
81void MergeErrorLogEntry(TErrorCode::type error_code, const ErrorLogEntryPB& entry,
82 ErrorLogMap* target_map) {
83 ErrorLogEntryPB* target = &(*target_map)[error_code];
84
85 // Append generic message, append specific codes or increment count if exists.
86 if (error_code == TErrorCode::GENERAL || target->messages_size() == 0) {
87 for (auto& msg : entry.messages()) {
88 target->add_messages(msg);
89 }
90 }
91 if (error_code != TErrorCode::GENERAL) {
92 target->set_count(target->count() + entry.count());
93 }
94}
95
96void MergeErrorMaps(const ErrorLogMapPB& m1, ErrorLogMap* m2) {
97 for (const ErrorLogMapPB::value_type& v : m1) {

Callers 1

MergeErrorMapsFunction · 0.85

Calls 1

countMethod · 0.45

Tested by

no test coverage detected