mirror of https://gitee.com/bigwinds/arangodb
cppcheck
This commit is contained in:
parent
c3678ea845
commit
8f4a3be165
|
@ -263,7 +263,6 @@ ServerState::RoleEnum ServerState::getRole() {
|
|||
return role;
|
||||
}
|
||||
|
||||
std::string info = _localInfo;
|
||||
std::string id = _id;
|
||||
|
||||
if (id.empty()) {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// DISCLAIMER
|
||||
///
|
||||
|
@ -90,8 +89,8 @@ inline HttpHandler::status_t RestAgencyHandler::handleWrite () {
|
|||
return HttpHandler::status_t(HANDLER_DONE);
|
||||
}
|
||||
write_ret_t ret = _agent->write (query);
|
||||
size_t errors = 0;
|
||||
if (ret.accepted) { // We're leading and handling the request
|
||||
size_t errors = 0;
|
||||
Builder body;
|
||||
body.add(VPackValue(VPackValueType::Object));
|
||||
_agent->waitFor (ret.indices.back()); // Wait for confirmation
|
||||
|
|
|
@ -380,6 +380,7 @@ ArangoServer::ArangoServer(int argc, char** argv)
|
|||
_applicationDispatcher(nullptr),
|
||||
_applicationEndpointServer(nullptr),
|
||||
_applicationCluster(nullptr),
|
||||
_applicationAgency(nullptr),
|
||||
_jobManager(nullptr),
|
||||
_applicationV8(nullptr),
|
||||
_authenticateSystemOnly(false),
|
||||
|
|
Loading…
Reference in New Issue