mirror of https://gitee.com/bigwinds/arangodb
Add an asserting to prevent the agency from redirecting to itself.
This commit is contained in:
parent
638ce07e6d
commit
88ea314102
|
@ -227,6 +227,7 @@ RestStatus RestAgencyHandler::handleWrite() {
|
||||||
LOG_TOPIC(DEBUG, Logger::AGENCY) << "We don't know who the leader is";
|
LOG_TOPIC(DEBUG, Logger::AGENCY) << "We don't know who the leader is";
|
||||||
return RestStatus::DONE;
|
return RestStatus::DONE;
|
||||||
} else {
|
} else {
|
||||||
|
TRI_ASSERT(ret.redirect != _agent->leaderID());
|
||||||
redirectRequest(ret.redirect);
|
redirectRequest(ret.redirect);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue