| 2162 | } |
| 2163 | |
| 2164 | void Server::UpdateWatchedKeysFromArgs(const std::vector<std::string> &args, const redis::CommandAttributes &attr) { |
| 2165 | if ((attr.GenerateFlags(args, *GetConfig()) & redis::kCmdWrite) && watched_key_size_ > 0) { |
| 2166 | attr.ForEachKeyRange([this](const std::vector<std::string> &args, |
| 2167 | redis::CommandKeyRange range) { updateWatchedKeysFromRange(args, range); }, |
| 2168 | args, [this](const std::vector<std::string> &) { updateAllWatchedKeys(); }); |
| 2169 | } |
| 2170 | } |
| 2171 | |
| 2172 | void Server::UpdateWatchedKeysManually(const std::vector<std::string> &keys) { |
| 2173 | std::shared_lock lock(watched_key_mutex_); |
no test coverage detected