1
0
Fork 0

Properly translate cluster comm errors (#8151)

This commit is contained in:
Simon 2019-02-12 18:07:09 +01:00 committed by Jan
parent 77dc65ee89
commit 9622f0d13f
1 changed files with 2 additions and 2 deletions

View File

@ -953,7 +953,7 @@ int countOnCoordinator(std::string const& dbname, std::string const& cname,
return static_cast<int>(res.answer_code);
}
} else {
return TRI_ERROR_CLUSTER_BACKEND_UNAVAILABLE;
return handleGeneralCommErrors(&req.result);
}
}
@ -1052,7 +1052,7 @@ int selectivityEstimatesOnCoordinator(std::string const& dbname, std::string con
return static_cast<int>(res.answer_code);
}
} else {
return TRI_ERROR_CLUSTER_BACKEND_UNAVAILABLE;
return handleGeneralCommErrors(&req.result);
}
}