jdeppe-pivotal commented on a change in pull request #6534:
URL: https://github.com/apache/geode/pull/6534#discussion_r643363085



##########
File path: 
geode-apis-compatible-with-redis/src/main/java/org/apache/geode/redis/internal/data/RedisSortedSet.java
##########
@@ -228,6 +230,30 @@ private void validateScoreIsDouble(byte[] score) {
     return members.get(member);
   }
 
+  byte[] zincrby(Region<RedisKey, RedisData> region, RedisKey key, byte[] 
increment,
+      byte[] member) {
+    byte[] score = members.get(member);
+    byte[] incr = Coder.doubleToBytes(
+        processIncrement(Coder.bytesToString(increment).toLowerCase()));
+
+    if (Arrays.equals(incr, ERROR_NOT_A_VALID_FLOAT.getBytes())) {
+      return incr;
+    }

Review comment:
       Since `processIncrement` is just throwing an exception now, this check 
and be removed.




-- 
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.

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


Reply via email to