szaszm commented on a change in pull request #894:
URL: https://github.com/apache/nifi-minifi-cpp/pull/894#discussion_r483114073



##########
File path: extensions/librdkafka/PublishKafka.h
##########
@@ -125,7 +125,7 @@ class PublishKafka : public core::Processor {
   utils::Regex attributeNameRegex_;
 
   std::atomic<bool> interrupted_{false};
-  std::mutex messages_mutex_;
+  std::mutex messages_mutex_;  // If both connection_mutex_ and 
messages_mutex_ are needed, always take connection_mutex_ first to avoid 
deadlock

Review comment:
       Letting others learn from my mistakes :)




----------------------------------------------------------------
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.

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


Reply via email to