lordgamez commented on a change in pull request #1280:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1280#discussion_r832084357
##########
File path: extensions/http-curl/tests/HTTPHandlers.h
##########
@@ -792,20 +792,40 @@ class C2AcknowledgeHandler : public ServerAwareHandler {
rapidjson::Document root;
root.Parse(req.data(), req.size());
if (root.IsObject() && root.HasMember("operationId")) {
- std::lock_guard<std::mutex> guard(mtx_);
+ std::lock_guard<std::mutex> guard(ack_operations_mtx_);
acknowledged_operations_.insert(root["operationId"].GetString());
}
+
+ if (root.IsObject() && root.HasMember("operationState")) {
+ if (root["operationState"].IsObject() &&
root["operationState"].HasMember("state")) {
+ std::lock_guard<std::mutex> guard(apply_count_mtx_);
+ auto result_state = root["operationState"]["state"].GetString();
+ if (apply_count_.find(result_state) != apply_count_.end()) {
Review comment:
Good call! Updated in 4198ad6599cd8ae739342b5376347c60329d53b6
--
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]