8000 Fix some undefined behaviour in some maintainer mode code (#14891) · open-bigdata/arangodb@b4920a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit b4920a8

Browse files
authored
Fix some undefined behaviour in some maintainer mode code (arangodb#14891)
1 parent a8897f7 commit b4920a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arangod/Agency/AsyncAgencyComm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,10 @@ void AsyncAgencyCommManager::reportError(std::string const& endpoint) {
491491
<< "reportError(" << endpoint << "), endpoints = " << _endpoints;
492492
if (endpoint == _endpoints.front()) {
493493
_endpoints.pop_front();
494+
_endpoints.push_back(endpoint);
494495
LOG_TOPIC("aac43", DEBUG, Logger::AGENCYCOMM)
495496
<< "Error using endpoint " << endpoint << ", switching to "
496497
<< _endpoints.front();
497-
_endpoints.push_back(endpoint);
498498
}
499499
}
500500

0 commit comments

Comments
 (0)
0