lordgamez commented on code in PR #1941:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1941#discussion_r2284892428
##########
libminifi/src/c2/ControllerSocketProtocol.cpp:
##########
@@ -187,6 +187,12 @@ void ControllerSocketProtocol::initialize() {
}
}
+void ControllerSocketProtocol::setRoot(core::ProcessGroup* root) {
+ if (auto controller_socket_reporter = controller_socket_reporter_.lock()) {
+ controller_socket_reporter->setRoot(root);
+ }
+}
+
Review Comment:
In the RootProcessGroupWrapper::setNewRoot we create a backup of the old
root before calling the setRoot with the new root process group. If the flow
update succeeds we clear the old root, otherwise we restore it.
--
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]