From 7acbdab58b0c61d7585aec7acd7f34f26d9972dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=99=88=E5=AA=9B?= <10225101469@stu.ecnu.edu.cn> Date: Tue, 29 Oct 2024 10:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=88=E5=B9=B6=E9=80=BB?= =?UTF-8?q?=E8=BE=91-=E6=9C=B1=E9=99=88=E5=AA=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- leveldb_base/db/write_batch.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leveldb_base/db/write_batch.cc b/leveldb_base/db/write_batch.cc index 7ea7b40..f73bf0e 100644 --- a/leveldb_base/db/write_batch.cc +++ b/leveldb_base/db/write_batch.cc @@ -20,7 +20,7 @@ #include "db/write_batch_internal.h" #include "leveldb/db.h" #include "util/coding.h" -// 添加所需头文件-橙 +// 添加所需头文件-朱陈媛 #include #include #include @@ -105,7 +105,7 @@ void WriteBatch::Put(const Slice& key, const Slice& value) { PutLengthPrefixedSlice(&rep_, key); PutLengthPrefixedSlice(&rep_, value); } -// 添加ttl,新的put方法-橙 +// 添加ttl,新的put方法-朱陈媛 void WriteBatch::Put(const Slice& key, const Slice& value, uint64_t ttl) { WriteBatchInternal::SetCount(this, WriteBatchInternal::Count(this) + 1); rep_.push_back(static_cast(kTypeValue));