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

Skip to content

Commit cf8aa06

Browse files
jsteemannneunhoef
andauthored
Fix some undefined behaviour in some maintainer mode code (#14891) (#18371)
Co-authored-by: Max Neunhöffer <max@arangodb.com>
1 parent fca05eb commit cf8aa06

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
@@ -524,10 +524,10 @@ void AsyncAgencyCommManager::reportError(std::string const& endpoint) {
524524
<< "reportError(" << endpoint << "), endpoints = " << _endpoints;
525525
if (endpoint == _endpoints.front()) {
526526
_endpoints.pop_front();
527+
_endpoints.push_back(endpoint);
527528
LOG_TOPIC("aac43", DEBUG, Logger::AGENCYCOMM)
528529
<< "Error using endpoint " << endpoint << ", switching to "
529530
<< _endpoints.front();
530-
_endpoints.push_back(endpoint);
531531
}
532532
}
533533

0 commit comments

Comments
 (0)
0