Skip to content

Commit

Permalink
Fixed the return value problem of hset (OpenAtomFoundation#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixficsol authored Jul 10, 2023
1 parent a485ab4 commit 1d673bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/src/redis_hashes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ Status RedisHashes::HSet(const Slice& key, const Slice& field, const Slice& valu
} else if (s.IsNotFound()) {
char str[4];
EncodeFixed32(str, 1);
HashesMetaValue meta_value(std::string(str, sizeof(int32_t)));
HashesMetaValue meta_value(Slice(str, sizeof(int32_t)));
version = meta_value.UpdateVersion();
batch.Put(handles_[0], key, meta_value.Encode());
HashesDataKey data_key(key, version, field);
Expand Down

0 comments on commit 1d673bf

Please sign in to comment.