This is an automated email from the ASF dual-hosted git repository.
hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 68516e59 fix(typo): `filed -> field` (#2519)
68516e59 is described below
commit 68516e59a56361a61963cde430ecc02988d47fad
Author: AntiTopQuark <[email protected]>
AuthorDate: Mon Sep 2 20:23:37 2024 +0800
fix(typo): `filed -> field` (#2519)
---
src/storage/rdb.cc | 8 ++++----
src/storage/rdb.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/storage/rdb.cc b/src/storage/rdb.cc
index ed55ddcd..43bad3a0 100644
--- a/src/storage/rdb.cc
+++ b/src/storage/rdb.cc
@@ -483,14 +483,14 @@ Status RDB::saveRdbObject(engine::Context &ctx, int type,
const std::string &key
} else if (type == RDBTypeHash || type == RDBTypeHashListPack || type ==
RDBTypeHashZipList ||
type == RDBTypeHashZipMap) {
const auto &entries = std::get<std::map<std::string, std::string>>(obj);
- std::vector<FieldValue> filed_values;
- filed_values.reserve(entries.size());
+ std::vector<FieldValue> field_values;
+ field_values.reserve(entries.size());
for (const auto &entry : entries) {
- filed_values.emplace_back(entry.first, entry.second);
+ field_values.emplace_back(entry.first, entry.second);
}
redis::Hash hash_db(storage_, ns_);
uint64_t count = 0;
- db_status = hash_db.MSet(ctx, key, filed_values, false /*nx*/, &count);
+ db_status = hash_db.MSet(ctx, key, field_values, false /*nx*/, &count);
} else if (type == RDBTypeList || type == RDBTypeListZipList || type ==
RDBTypeListQuickList ||
type == RDBTypeListQuickList2) {
const auto &elements = std::get<std::vector<std::string>>(obj);
diff --git a/src/storage/rdb.h b/src/storage/rdb.h
index 4f8b95db..8865c5b8 100644
--- a/src/storage/rdb.h
+++ b/src/storage/rdb.h
@@ -128,7 +128,7 @@ class RDB {
Status SaveZSetObject(const std::vector<MemberScore> &member_scores);
// Hash
- Status SaveHashObject(const std::vector<FieldValue> &filed_value);
+ Status SaveHashObject(const std::vector<FieldValue> &field_value);
private:
engine::Storage *storage_;