diff --git a/arangod/Cluster/ClusterMethods.cpp b/arangod/Cluster/ClusterMethods.cpp index f64b1b2ba0..532d5d2bf6 100644 --- a/arangod/Cluster/ClusterMethods.cpp +++ b/arangod/Cluster/ClusterMethods.cpp @@ -785,15 +785,14 @@ int createDocumentOnCoordinator( // Perform the requests size_t nrDone = 0; - size_t nrGood = cc->performRequests(requests, CL_DEFAULT_TIMEOUT, nrDone, - Logger::REQUESTS); + cc->performRequests(requests, CL_DEFAULT_TIMEOUT, nrDone, Logger::REQUESTS); // Now listen to the results: if (!useMultiple) { TRI_ASSERT(requests.size() == 1); auto const& req = requests[0]; auto res = req.result; - if (nrGood == 0) { + if (nrDone == 0) { // There has been Communcation error. Handle and return it. return handleGeneralCommErrors(&res); } @@ -944,15 +943,14 @@ int deleteDocumentOnCoordinator( // Perform the requests size_t nrDone = 0; - size_t nrGood = cc->performRequests(requests, CL_DEFAULT_TIMEOUT, nrDone, - Logger::REQUESTS); + cc->performRequests(requests, CL_DEFAULT_TIMEOUT, nrDone, Logger::REQUESTS); // Now listen to the results: if (!useMultiple) { TRI_ASSERT(requests.size() == 1); auto const& req = requests[0]; auto res = req.result; - if (nrGood == 0) { + if (nrDone == 0) { return handleGeneralCommErrors(&res); } responseCode = res.answer_code;