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

Function GetConfigFromCommand

be/src/util/backend-gflag-util.cc:391–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389DEFINE_validator(unregistration_thread_pool_size, &ValidatePositiveInt32);
390
391Status GetConfigFromCommand(const string& flag_cmd, string& result) {
392 result.clear();
393 if (flag_cmd.empty()) return Status::OK();
394 if (!RunShellProcess(flag_cmd, &result, true, {"JAVA_TOOL_OPTIONS"})) {
395 return Status(strings::Substitute("$0 failed with output: '$1'", flag_cmd, result));
396 }
397 return Status::OK();
398}
399
400Status PopulateThriftBackendGflags(TBackendGflags& cfg) {
401 cfg.__set_load_catalog_in_background(FLAGS_load_catalog_in_background);

Callers 1

Calls 5

OKFunction · 0.85
SubstituteFunction · 0.85
StatusClass · 0.70
clearMethod · 0.65
emptyMethod · 0.45

Tested by

no test coverage detected