mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-21 13:49:50 +08:00
fix(store): fix wrong value of MessageStoreConfig#storePathMetadata and storePathTempMetadata
1. fix wrong value of MessageStoreConfig#storePathMetadata and storePathTempMetadata
This commit is contained in:
@@ -41,9 +41,11 @@ public class MessageStoreConfig {
|
||||
@ImportantField
|
||||
private String storePathEpochFile = null;
|
||||
|
||||
private String storePathMetadata = storePathRootDir + File.separator + "metadata";
|
||||
@ImportantField
|
||||
private String storePathMetadata = null;
|
||||
|
||||
private String storePathTempMetadata = storePathRootDir + File.separator + "metadata-temp";
|
||||
@ImportantField
|
||||
private String storePathTempMetadata = null;
|
||||
|
||||
private String readOnlyCommitLogStorePaths = null;
|
||||
|
||||
@@ -642,6 +644,9 @@ public class MessageStoreConfig {
|
||||
}
|
||||
|
||||
public String getStorePathMetadata() {
|
||||
if (storePathMetadata == null) {
|
||||
return storePathRootDir + File.separator + "metadata";
|
||||
}
|
||||
return storePathMetadata;
|
||||
}
|
||||
|
||||
@@ -650,6 +655,9 @@ public class MessageStoreConfig {
|
||||
}
|
||||
|
||||
public String getStorePathTempMetadata() {
|
||||
if (storePathTempMetadata == null) {
|
||||
return storePathRootDir + File.separator + "metadata-temp";
|
||||
}
|
||||
return storePathTempMetadata;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user