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));