mirror of https://gitee.com/bigwinds/arangodb
Properly translate cluster comm errors (#8151)
This commit is contained in:
parent
77dc65ee89
commit
9622f0d13f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue