| 39 | class CorruptionReporter : public log::Reader::Reporter { |
| 40 | public: |
| 41 | void Corruption(size_t bytes, const Status& status) override { |
| 42 | std::string r = "corruption: "; |
| 43 | AppendNumberTo(&r, bytes); |
| 44 | r += " bytes; "; |
| 45 | r += status.ToString(); |
| 46 | r.push_back('\n'); |
| 47 | dst_->Append(r); |
| 48 | } |
| 49 | |
| 50 | WritableFile* dst_; |
| 51 | }; |
nothing calls this directly
no test coverage detected