fgerlits commented on code in PR #1460:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1460#discussion_r1056437169


##########
extensions/rocksdb-repos/FlowFileRepository.h:
##########
@@ -100,11 +100,17 @@ class FlowFileRepository : public ThreadedRepository, 
public SwapManager {
     config_ = configure;
     std::string value;
 
-    if (configure->get(Configure::nifi_flowfile_repository_directory_default, 
value)) {
+    if (configure->get(Configure::nifi_flowfile_repository_directory_default, 
value) && !value.empty()) {
       directory_ = value;
     }
     logger_->log_debug("NiFi FlowFile Repository Directory %s", directory_);
 
+    value.clear();
+    if (configure->get(Configure::nifi_flowfile_checkpoint_directory_default, 
value) && !value.empty()) {
+      checkpoint_dir_ = value;
+    }
+    logger_->log_debug("NiFi FlowFile Checkpoint Directory %s", 
checkpoint_dir_);

Review Comment:
   I think you need to either add `.string()` here, or make the conversion 
templates in `Logger.h` smarter to accept `path`s.



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