gavinchou commented on code in PR #52729:
URL: https://github.com/apache/doris/pull/52729#discussion_r2182334730
##########
cloud/src/meta-store/mem_txn_kv.cpp:
##########
@@ -255,6 +257,10 @@ void Transaction::put(std::string_view key,
std::string_view val) {
TxnErrorCode Transaction::get(std::string_view key, std::string* val, bool
snapshot) {
std::lock_guard<std::mutex> l(lock_);
+ val->clear();
+ DORIS_CLOUD_DEFER {
+ get_bytes_ += val->size();
Review Comment:
what about bytes size of key?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]