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

Method Corruption

src/leveldb/db/db_impl.cc:389–394  ·  view source on GitHub ↗

null if options_.paranoid_checks==false

Source from the content-addressed store, hash-verified

387 const char* fname;
388 Status* status; // null if options_.paranoid_checks==false
389 void Corruption(size_t bytes, const Status& s) override {
390 Log(info_log, "%s%s: dropping %d bytes; %s",
391 (this->status == nullptr ? "(ignoring error) " : ""), fname,
392 static_cast<int>(bytes), s.ToString().c_str());
393 if (this->status != nullptr && this->status->ok()) *this->status = s;
394 }
395 };
396
397 mutex_.AssertHeld();

Callers 2

RecoverLogFileMethod · 0.45
ReportDropMethod · 0.45

Calls 2

LogFunction · 0.85
ToStringMethod · 0.45

Tested by

no test coverage detected