diff --git a/db/db_impl.cc b/db/db_impl.cc index 2e68b31..6dcc5e0 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -899,6 +899,7 @@ Status DBImpl::InstallCompactionResults(CompactionState* compact) { return versions_->LogAndApply(compact->compaction->edit(), &mutex_); } +/* TODO: Check if a string consists entirely of digits */ bool isAllDigits(const std::string& str) { for (char c : str) { if (!isdigit(c)) { @@ -907,6 +908,7 @@ bool isAllDigits(const std::string& str) { } return true; } +/* --------------------------- */ Status DBImpl::DoCompactionWork(CompactionState* compact) { const uint64_t start_micros = env_->NowMicros();