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

Function FailureWriterWithCoverage

be/src/kudu/util/logging.cc:191–198  ·  view source on GitHub ↗

On SEGVs, etc, glog will call this function to write the error to stderr. This implementation is copied from glog with the exception that we also flush coverage the first time it's called. NOTE: this is only used in coverage builds!

Source from the content-addressed store, hash-verified

189//
190// NOTE: this is only used in coverage builds!
191void FailureWriterWithCoverage(const char* data, size_t size) {
192 FlushCoverageOnExit();
193
194 // Original implementation from glog:
195 if (write(STDERR_FILENO, data, size) < 0) {
196 // Ignore errors.
197 }
198}
199
200// GLog "failure function". This is called in the case of LOG(FATAL) to
201// ensure that we flush coverage even on crashes.

Callers

nothing calls this directly

Calls 2

FlushCoverageOnExitFunction · 0.85
writeFunction · 0.85

Tested by

no test coverage detected