Skip to content

Commit

Permalink
test every range in loop
Browse files Browse the repository at this point in the history
Signed-off-by: clundro <infdahai@outlook.com>
  • Loading branch information
infdahai committed Jul 8, 2023
1 parent d99f251 commit 789fdd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1692,8 +1692,8 @@ void Server::UpdateWatchedKeysFromArgs(const std::vector<std::string> &args, con
} else if (attr.key_range.first_key == -2) {
std::vector<redis::CommandKeyRange> vec_range = attr.key_range_vec_gen(args);

if (vec_range.front().first_key > 0) {
for (const auto &range : vec_range) {
for (const auto &range : vec_range) {
if (range.first_key > 0) {
updateWatchedKeysFromRange(args, range);
}
}
Expand Down

0 comments on commit 789fdd1

Please sign in to comment.