sashapolo commented on code in PR #1170:
URL: https://github.com/apache/ignite-3/pull/1170#discussion_r989917435


##########
modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/RocksDbClusterStateStorage.java:
##########
@@ -108,6 +108,22 @@ public void put(byte[] key, byte[] value) {
         }
     }
 
+    @Override
+    public void replaceAll(byte[] prefix, byte[] key, byte[] value) {
+        try (
+                var batch = new WriteBatch();
+                var options = new WriteOptions();
+        ) {
+            batch.deleteRange(prefix, RocksUtils.incrementArray(prefix));

Review Comment:
   This is currently impossible, because we always have a prefix that does not 
consist of 0xFFs. I can add an assertion if you like



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to