We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c97fff0 commit d877a6cCopy full SHA for d877a6c
1 file changed
src/storage/src/redis.cc
@@ -208,8 +208,7 @@ void Redis::GetBigKeyStatistics(std::vector<BigKeyInfo>* bigkeys) {
208
if (!bigkeys) {
209
return;
210
}
211
-
212
- std::lock_guard<std::mutex> lock(big_keys_mutex_);
+ std::shared_lock lock(big_keys_mutex_);
213
for (const auto& kv : big_keys_info_map_) {
214
BigKeyInfo info = kv.second;
215
info.key = kv.first;
0 commit comments