mirror of https://gitee.com/bigwinds/arangodb
Revert "Bugfixes in error handling."
This reverts commit ab7ab515fb
, which was
nonsensical.
This commit is contained in:
parent
91ff87157d
commit
d8573bd009
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue