diff --git a/README.md b/README.md index d86feb2..1c56240 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -
在LevelDB中实现TTL功能
+# 在LevelDB中实现TTL功能 -
10225102463 李畅 10225101440 韩晨旭
+## 10225102463 李畅 10225101440 韩晨旭@ArcueidType # 实验要求 diff --git a/db/version_set.cc b/db/version_set.cc index a9f16ed..eb95950 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -1477,6 +1477,7 @@ Compaction* VersionSet::CompactRange(int level, const InternalKey* begin, c->input_version_ = current_; c->input_version_->Ref(); c->inputs_[0] = inputs; + SetupOtherInputs(c); return c; } diff --git a/db/version_set.h b/db/version_set.h index e23c558..7d09cc6 100644 --- a/db/version_set.h +++ b/db/version_set.h @@ -286,7 +286,7 @@ class VersionSet { const std::vector& inputs2, InternalKey* smallest, InternalKey* largest); - void SetupOtherInputs(Compaction* c); + void SetupOtherInputs(Compaction* c); // Save current contents to *log Status WriteSnapshot(log::Writer* log);