mirror of https://gitee.com/bigwinds/arangodb
fix some issues found by cppcheck (#8959)
This commit is contained in:
parent
bc4f2ce90a
commit
c00442e31c
|
@ -250,7 +250,7 @@ bool AgencyWriteTransaction::validate(AgencyCommResult const& result) const {
|
|||
}
|
||||
|
||||
std::string AgencyWriteTransaction::randomClientId() {
|
||||
std::string uuid = to_string(boost::uuids::random_generator()()), id;
|
||||
std::string uuid = to_string(boost::uuids::random_generator()());
|
||||
|
||||
auto ss = ServerState::instance();
|
||||
if (ss != nullptr && !ss->getId().empty()) {
|
||||
|
|
|
@ -966,7 +966,6 @@ trans_ret_t Agent::transact(query_t const& queries) {
|
|||
// own conclusions. The map of ongoing trxs is only to cover the time
|
||||
// from when we receive the request until we have appended the trxs
|
||||
// ourselves.
|
||||
ret = std::make_shared<arangodb::velocypack::Builder>();
|
||||
failed = 0;
|
||||
ret->openArray();
|
||||
// Only leader else redirect
|
||||
|
|
|
@ -68,7 +68,6 @@ bool IniFileParser::parse(std::string const& filename, bool endPassAfterwards) {
|
|||
} catch (arangodb::basics::Exception const& ex) {
|
||||
return _options->fail(std::string("Couldn't open configuration file: '") +
|
||||
filename + "' - " + ex.what());
|
||||
return true;
|
||||
}
|
||||
bool isCommunity = false;
|
||||
bool isEnterprise = false;
|
||||
|
|
Loading…
Reference in New Issue