Skip to content

Commit

Permalink
[ISSUE #8032] Set checkDupInfo value from config
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleBoy18 authored Apr 18, 2024
1 parent ac5545c commit 9d07cc7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ private void dledgerRecoverNormally(long maxPhyOffsetOfConsumeQueue) throws Rock

private void dledgerRecoverAbnormally(long maxPhyOffsetOfConsumeQueue) throws RocksDBException {
boolean checkCRCOnRecover = this.defaultMessageStore.getMessageStoreConfig().isCheckCRCOnRecover();
boolean checkDupInfo = this.defaultMessageStore.getMessageStoreConfig().isDuplicationEnable();
dLedgerFileStore.load();
if (!dLedgerFileList.getMappedFiles().isEmpty()) {
dLedgerFileStore.recover();
Expand Down Expand Up @@ -346,7 +347,7 @@ private void dledgerRecoverAbnormally(long maxPhyOffsetOfConsumeQueue) throws Ro
long processOffset = mmapFile.getFileFromOffset();
long mmapFileOffset = 0;
while (true) {
DispatchRequest dispatchRequest = this.checkMessageAndReturnSize(byteBuffer, checkCRCOnRecover, true);
DispatchRequest dispatchRequest = this.checkMessageAndReturnSize(byteBuffer, checkCRCOnRecover, checkDupInfo);
int size = dispatchRequest.getMsgSize();

if (dispatchRequest.isSuccess()) {
Expand Down

0 comments on commit 9d07cc7

Please sign in to comment.