瀏覽代碼

add some comments

main
GUJIEJASON 2 週之前
父節點
當前提交
604470f2c4
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      db/db_impl.cc

+ 2
- 0
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();

Loading…
取消
儲存