Skip to content

Commit

Permalink
[ISSUE apache#8032] Set checkDupInfo value from config
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleBoy18 authored and dingshuangxi888 committed May 7, 2024
1 parent 1343845 commit 5c24b59
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 5c24b59

Please sign in to comment.