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

Function RunCustomValidators

be/src/kudu/util/flags.cc:451–461  ·  view source on GitHub ↗

Run 'late phase' custom validators: these can be run only when all flags are already parsed and individually validated.

Source from the content-addressed store, hash-verified

449// Run 'late phase' custom validators: these can be run only when all flags are
450// already parsed and individually validated.
451void RunCustomValidators() {
452 const auto& validators(GetFlagValidators());
453 bool found_inconsistency = false;
454 for (const auto& e : validators) {
455 found_inconsistency |= !e.second();
456 }
457 if (found_inconsistency) {
458 LOG(ERROR) << "Detected inconsistency in command-line flags; exiting";
459 exit(1);
460 }
461}
462
463void SetUmask() {
464 // We already validated with a nice error message using the ValidateUmask

Callers 1

ValidateFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected