Skip to content

Commit

Permalink
Align georadius behavior of redis (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanruixiang authored Oct 14, 2022
1 parent b1f73a8 commit 67b39da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/redis_cmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3203,7 +3203,11 @@ class CommandGeoRadius : public CommandGeoBase {
if (!s.ok()) {
return Status(Status::RedisExecErr, s.ToString());
}
*output = GenerateOutput(geo_points);
if (store_key_.size() != 0) {
*output = Redis::Integer(geo_points.size());
} else {
*output = GenerateOutput(geo_points);
}
return Status::OK();
}

Expand Down

0 comments on commit 67b39da

Please sign in to comment.