adamdebreceni commented on code in PR #1519:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1519#discussion_r1123291485
##########
libminifi/include/core/ContentRepository.h:
##########
@@ -53,10 +54,18 @@ class ContentRepository : public
StreamManager<minifi::ResourceClaim>, public ut
virtual void clearOrphans() = 0;
+ bool remove(const minifi::ResourceClaim &streamId) override {
+ return removeKey(streamId.getContentFullPath());
+ }
+
protected:
+ void removeFromPurgeList();
+ virtual bool removeKey(const std::string& content_path) = 0;
+
std::string directory_;
std::mutex count_map_mutex_;
Review Comment:
rename this mutex as it no longer protects just the `count_map_` but the
`purge_list_` as well
--
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]