rpuch commented on code in PR #1170:
URL: https://github.com/apache/ignite-3/pull/1170#discussion_r989984606
##########
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:
Yes, please, it would be great to have an assertion
--
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]