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

Function GetNonDefaultFlagsHelper

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

Source from the content-addressed store, hash-verified

567
568
569vector<CommandLineFlagInfo> GetNonDefaultFlagsHelper() {
570 vector<CommandLineFlagInfo> all_flags;
571 GetAllFlags(&all_flags);
572 vector<CommandLineFlagInfo> non_default_flags;
573 std::copy_if(all_flags.begin(), all_flags.end(), std::back_inserter(non_default_flags),
574 [] (const auto& flag) {
575 // In addition to checking that the flag has been rewritten with 'is_default',
576 // we also check that the value is different from the default value.
577 return !flag.is_default && flag.current_value != flag.default_value;
578 });
579 return non_default_flags;
580}
581
582string GetNonDefaultFlags() {
583 ostringstream args;

Callers 3

GetNonDefaultFlagsFunction · 0.85
GetNonDefaultFlagsMapFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected