| 883 | void Compact(ThreadState* thread) { db_->CompactRange(nullptr, nullptr); } |
| 884 | |
| 885 | void PrintStats(const char* key) { |
| 886 | std::string stats; |
| 887 | if (!db_->GetProperty(key, &stats)) { |
| 888 | stats = "(failed)"; |
| 889 | } |
| 890 | fprintf(stdout, "\n%s\n", stats.c_str()); |
| 891 | } |
| 892 | |
| 893 | static void WriteToFile(void* arg, const char* buf, int n) { |
| 894 | reinterpret_cast<WritableFile*>(arg)->Append(Slice(buf, n)); |
nothing calls this directly
no test coverage detected