chakkk309 commented on code in PR #3313:
URL: https://github.com/apache/kvrocks/pull/3313#discussion_r2649741603
##########
src/types/redis_string.cc:
##########
@@ -657,4 +659,20 @@ rocksdb::Status String::LCS(engine::Context &ctx, const
std::string &user_key1,
return rocksdb::Status::OK();
}
+std::string String::ComputeXXH3Hash(const std::string &data) {
+ uint64_t hash = XXH3_64bits(data.data(), data.size());
+ return fmt::format("{:016x}", hash);
+}
Review Comment:
> It can be put into string_util.h.
Sure, i will move this method later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]