From 604470f2c4af89380e32686f1ab87b466ee6ebd9 Mon Sep 17 00:00:00 2001 From: GUJIEJASON <1776127334@qq.com> Date: Sun, 3 Nov 2024 20:51:20 +0800 Subject: [PATCH] add some comments --- db/db_impl.cc | 2 ++ 1 file changed, 2 insertions(+) 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();