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

Function AbortIfError

be/src/common/init.cc:303–307  ·  view source on GitHub ↗

Helper method that checks the return value of a syscall passed through 'syscall_ret_val'. If it indicates an error, it writes an error message to stderr along with the error string fetched via errno and calls exit().

Source from the content-addressed store, hash-verified

301// 'syscall_ret_val'. If it indicates an error, it writes an error message to stderr along
302// with the error string fetched via errno and calls exit().
303void AbortIfError(const int syscall_ret_val, const string& msg) {
304 if (syscall_ret_val == 0) return;
305 cerr << Substitute("$0 Error: $1", msg, GetStrErrMsg());
306 exit(1);
307}
308
309// Blocks the IMPALA_SHUTDOWN_SIGNAL signal. Should be called by the process before
310// spawning any other threads to make sure it gets blocked in all threads and will only be

Callers 1

Calls 2

SubstituteFunction · 0.85
GetStrErrMsgFunction · 0.85

Tested by

no test coverage detected