Skip to content

Commit

Permalink
fix: change a parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
longfar-ncy committed Dec 4, 2023
1 parent 14d6c8d commit 3bd3ed5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3bd3ed5

Please sign in to comment.