MCPcopy Create free account
hub / github.com/apple/foundationdb / toString

Method toString

fdbbackup/FileDecoder.actor.cpp:120–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 }
119
120 std::string toString() {
121 std::string s;
122 s.append("ContainerURL: ");
123 s.append(container_url);
124 if (proxy.present()) {
125 s.append(", Proxy: ");
126 s.append(proxy.get());
127 }
128 s.append(", FileFilter: ");
129 s.append(fileFilter);
130 if (log_enabled) {
131 if (!log_dir.empty()) {
132 s.append(" LogDir:").append(log_dir);
133 }
134 if (!trace_format.empty()) {
135 s.append(" Format:").append(trace_format);
136 }
137 if (!trace_log_group.empty()) {
138 s.append(" LogGroup:").append(trace_log_group);
139 }
140 }
141 s.append(", list_only: ").append(list_only ? "true" : "false");
142 if (beginVersionFilter != 0) {
143 s.append(", beginVersionFilter: ").append(std::to_string(beginVersionFilter));
144 }
145 if (endVersionFilter < std::numeric_limits<Version>::max()) {
146 s.append(", endVersionFilter: ").append(std::to_string(endVersionFilter));
147 }
148 if (!prefix.empty()) {
149 s.append(", KeyPrefix: ").append(printable(KeyRef(prefix)));
150 }
151 for (const auto& [knob, value] : knobs) {
152 s.append(", KNOB-").append(knob).append(" = ").append(value);
153 }
154 s.append(", SaveFile: ").append(save_file_locally ? "true" : "false");
155 return s;
156 }
157
158 void updateKnobs() {
159 IKnobCollection::setupKnobs(knobs);

Callers 15

printLogFilesFunction · 0.45
Future<Void> decode_logsFunction · 0.45
mainFunction · 0.45
printAgentUsageFunction · 0.45
printBackupUsageFunction · 0.45
printRestoreUsageFunction · 0.45
printDBAgentUsageFunction · 0.45
printDBBackupUsageFunction · 0.45

Calls 7

KeyRefClass · 0.85
getMethod · 0.65
to_stringFunction · 0.50
printableFunction · 0.50
appendMethod · 0.45
presentMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected