MCPcopy Create free account
hub / github.com/ElementsProject/elements / ConvertLogFilesToTables

Method ConvertLogFilesToTables

src/leveldb/db/repair.cc:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 }
130
131 void ConvertLogFilesToTables() {
132 for (size_t i = 0; i < logs_.size(); i++) {
133 std::string logname = LogFileName(dbname_, logs_[i]);
134 Status status = ConvertLogToTable(logs_[i]);
135 if (!status.ok()) {
136 Log(options_.info_log, "Log #%llu: ignoring conversion error: %s",
137 (unsigned long long)logs_[i], status.ToString().c_str());
138 }
139 ArchiveFile(logname);
140 }
141 }
142
143 Status ConvertLogToTable(uint64_t log) {
144 struct LogReporter : public log::Reader::Reporter {

Callers

nothing calls this directly

Calls 4

LogFileNameFunction · 0.85
LogFunction · 0.85
sizeMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected