Skip to content

Commit

Permalink
[ISSUE #2398]🐛Fix GetMessageStatus judgement not incorret (#2399)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Jan 24, 2025
1 parent efa9df2 commit b1b31ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rocketmq-broker/src/processor/pop_message_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1053,11 +1053,11 @@ where
queue_id,
result_inner.message_queue_offset().clone(),
);
} else if (result_inner.status().is_none()
|| result_inner.status().unwrap() == GetMessageStatus::NoMatchedMessage
|| result_inner.status().unwrap() == GetMessageStatus::OffsetFoundNull
|| result_inner.status().unwrap() == GetMessageStatus::MessageWasRemoving
|| result_inner.status().unwrap() == GetMessageStatus::NoMatchedLogicQueue)
} else if (result_inner.status().is_some()
&& (result_inner.status().unwrap() == GetMessageStatus::NoMatchedMessage
|| result_inner.status().unwrap() == GetMessageStatus::OffsetFoundNull
|| result_inner.status().unwrap() == GetMessageStatus::MessageWasRemoving
|| result_inner.status().unwrap() == GetMessageStatus::NoMatchedLogicQueue))
&& result_inner.next_begin_offset() > -1
{
if is_order {
Expand Down

0 comments on commit b1b31ac

Please # to comment.