From 47343f975b55c430f362f80c7fb83e8cb904b514 Mon Sep 17 00:00:00 2001
From: Wesley <10225102463@stu.ecnu.edu.cn>
Date: Thu, 7 Nov 2024 00:06:34 +0800
Subject: [PATCH] report update again
---
README.md | 4 ++--
db/version_set.cc | 1 +
db/version_set.h | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
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);