lizhimins commented on code in PR #10174:
URL: https://github.com/apache/rocketmq/pull/10174#discussion_r3031643461
##########
store/src/main/java/org/apache/rocketmq/store/queue/RocksDBConsumeQueueStore.java:
##########
@@ -106,7 +106,19 @@ public RocksDBConsumeQueueStore(DefaultMessageStore
messageStore) {
super(messageStore);
messageStore.setNotifyMessageArriveInBatch(true);
- this.storePath =
StorePathConfigHelper.getStorePathConsumeQueue(messageStoreConfig.getStorePathRootDir());
+ String root = messageStoreConfig.getStorePathRootDir();
+ File checkFile;
+ if (messageStoreConfig.isUseSeparateStorePathForRocksdbCQ()) {
+ this.storePath =
StorePathConfigHelper.getStorePathRocksDBConsumeQueue(root);
+ checkFile = new
File(StorePathConfigHelper.getStorePathConsumeQueue(root) + File.separator +
"CURRENT");
+ } else {
+ this.storePath =
StorePathConfigHelper.getStorePathConsumeQueue(root);
+ checkFile = new
File(StorePathConfigHelper.getStorePathRocksDBConsumeQueue(root) +
File.separator + "CURRENT");
Review Comment:
Is the current file used to determine whether it has been created?
--
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]