Kris-10-0 commented on a change in pull request #7319:
URL: https://github.com/apache/geode/pull/7319#discussion_r794098696



##########
File path: 
geode-for-redis/src/main/java/org/apache/geode/redis/internal/data/RedisSet.java
##########
@@ -300,7 +283,7 @@ private void srandomDuplicateList(int count, List<byte[]> 
result) {
     }
   }
 
-  private void srandomUniqueListWithSmallCount(int count, List<byte[]> result) 
{
+  private void srandomUniqueListAddToResult(int count, List<byte[]> result, 
boolean isSPop) {

Review comment:
       It only adds the index if it isn't spop. When it does spop there is an 
indexUsed set, but nothing gets added so it is a waste.




-- 
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: notifications-unsubscr...@geode.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to