| 865 | } |
| 866 | |
| 867 | Status Storage::SyncWAL() { |
| 868 | auto s = db_->SyncWAL(); |
| 869 | if (!s.ok()) { |
| 870 | return {Status::NotOK, s.ToString()}; |
| 871 | } |
| 872 | return Status::OK(); |
| 873 | } |
| 874 | |
| 875 | void Storage::RecordStat(StatType type, uint64_t v) { |
| 876 | switch (type) { |
no test coverage detected