1
0
Fork 0

Fix another detail in AgencyComm.

This commit is contained in:
Max Neunhoeffer 2016-12-14 15:05:02 +01:00
parent 84415bb508
commit 12f9a6726f
1 changed files with 2 additions and 2 deletions

View File

@ -1219,9 +1219,9 @@ AgencyCommResult AgencyComm::sendWithFailover(
// in this case we have to pick it up and use the new location returned
if (result._statusCode ==
(int)arangodb::rest::ResponseCode::TEMPORARY_REDIRECT) {
std::string red = AgencyCommManager::MANAGER->redirect(
endpoint = AgencyCommManager::MANAGER->redirect(
std::move(connection), endpoint, result._location, url);
connection = AgencyCommManager::MANAGER->acquire(red);
connection = AgencyCommManager::MANAGER->acquire(endpoint);
continue;
}