From 3bd3ed56c4b7f4e5e30d34059085a6323b030f34 Mon Sep 17 00:00:00 2001 From: longfar Date: Mon, 4 Dec 2023 11:15:24 +0800 Subject: [PATCH] fix: change a parameter name --- src/cmd_hash.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd_hash.cc b/src/cmd_hash.cc index 45704fe26..fddfa09f6 100644 --- a/src/cmd_hash.cc +++ b/src/cmd_hash.cc @@ -11,12 +11,12 @@ namespace pikiwidb { -static inline PHash::iterator setHashForce(PHash& hash, const PString& key, const PString& val) { - auto it(hash.find(key)); +static inline PHash::iterator setHashForce(PHash& hash, const PString& field, const PString& val) { + auto it(hash.find(field)); if (it != hash.end()) { it->second = val; } else { - it = hash.insert(PHash::value_type(key, val)).first; + it = hash.insert(PHash::value_type(field, val)).first; } return it; }