lizhimins commented on code in PR #8081:
URL: https://github.com/apache/rocketmq/pull/8081#discussion_r1594894709


##########
broker/src/main/java/org/apache/rocketmq/broker/RocksDBConfigManager.java:
##########
@@ -62,6 +81,44 @@ public boolean load(String configFilePath, 
BiConsumer<byte[], byte[]> biConsumer
         return true;
     }
 
+    public boolean loadForbidden(String configFilePath, BiConsumer<byte[], 
byte[]> biConsumer) {
+        if (!init(configFilePath)) {
+            return false;
+        }
+        RocksIterator iterator = this.configRocksDBStorage.forbiddenIterator();
+        try {
+            iterator.seekToFirst();
+            while (iterator.isValid()) {
+                biConsumer.accept(iterator.key(), iterator.value());
+                iterator.next();
+            }
+        } finally {
+            iterator.close();
+        }
+        this.flushOptions = new FlushOptions();

Review Comment:
   和上面重复了



-- 
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: commits-unsubscr...@rocketmq.apache.org

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

Reply via email to