1
0
Fork 0

Add an asserting to prevent the agency from redirecting to itself.

This commit is contained in:
Max Neunhoeffer 2016-10-20 15:30:22 +02:00
parent 638ce07e6d
commit 88ea314102
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ RestStatus RestAgencyHandler::handleWrite() {
LOG_TOPIC(DEBUG, Logger::AGENCY) << "We don't know who the leader is";
return RestStatus::DONE;
} else {
TRI_ASSERT(ret.redirect != _agent->leaderID());
redirectRequest(ret.redirect);
}
}