Git-Yang commented on a change in pull request #3616:
URL: https://github.com/apache/rocketmq/pull/3616#discussion_r766314125



##########
File path: 
store/src/main/java/org/apache/rocketmq/store/DefaultMessageStore.java
##########
@@ -993,6 +985,29 @@ public QueryMessageResult queryMessage(String topic, 
String key, int maxNum, lon
         return queryMessageResult;
     }
 
+    /**
+     * check target msg match
+     *
+     * @param msg   message
+     * @param topic topic
+     * @param key   message key
+     * @return  is match
+     */
+    private boolean isMessageMatch(MessageExt msg, String topic, String key) {
+        String keys = msg.getKeys();
+        if (Objects.equals(topic, msg.getTopic()) && 
StringUtils.isNotEmpty(keys)) {

Review comment:
       Yes, I agree with you.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to