adamdebreceni commented on a change in pull request #807:
URL: https://github.com/apache/nifi-minifi-cpp/pull/807#discussion_r454871893
##########
File path: extensions/rocksdb-repos/FlowFileRepository.cpp
##########
@@ -148,22 +148,27 @@ void FlowFileRepository::prune_stored_flowfiles() {
std::string key = it->key().ToString();
if (eventRead->DeSerialize(reinterpret_cast<const uint8_t
*>(it->value().data()), it->value().size())) {
logger_->log_debug("Found connection for %s, path %s ",
eventRead->getConnectionUuid(), eventRead->getContentFullPath());
- auto search = connectionMap.find(eventRead->getConnectionUuid());
- if (!corrupt_checkpoint && search != connectionMap.end()) {
+ bool found = false;
+ auto search = containers.find(eventRead->getConnectionUuid());
+ found = (search != containers.end());
+ if (!found) {
+ // for backward compatibility
+ search = connectionMap.find(eventRead->getConnectionUuid());
+ found = (search != connectionMap.end());
+ }
Review comment:
done
----------------------------------------------------------------
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]