提交 28a0906b 编写于 作者: D dongeforever

Polish file reserved hours to 24 * 365 * 10 when disableDeleteDLedger

上级 3f0b0b23
......@@ -75,6 +75,7 @@ public class DLedgerCommitLog extends CommitLog {
super(defaultMessageStore);
dLedgerConfig = new DLedgerConfig();
dLedgerConfig.setEnableDiskForceClean(defaultMessageStore.getMessageStoreConfig().isCleanFileForciblyEnable());
dLedgerConfig.setStoreType(DLedgerConfig.FILE);
dLedgerConfig.setSelfId(defaultMessageStore.getMessageStoreConfig().getdLegerSelfId());
dLedgerConfig.setGroup(defaultMessageStore.getMessageStoreConfig().getdLegerGroup());
dLedgerConfig.setPeers(defaultMessageStore.getMessageStoreConfig().getdLegerPeers());
......@@ -114,7 +115,7 @@ public class DLedgerCommitLog extends CommitLog {
private void disableDeleteDledger() {
dLedgerConfig.setEnableDiskForceClean(false);
dLedgerConfig.setFileReservedHours(Integer.MAX_VALUE);
dLedgerConfig.setFileReservedHours(24 * 365 * 10);
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册