mirror of https://gitee.com/bigwinds/arangodb
fix Visual Studio compile warnings
This commit is contained in:
parent
a624ea4ec5
commit
192caed889
|
@ -114,7 +114,7 @@ bool FailedLeader::start() const {
|
||||||
todo.openArray();
|
todo.openArray();
|
||||||
try {
|
try {
|
||||||
_snapshot(toDoPrefix + _jobId).toBuilder(todo);
|
_snapshot(toDoPrefix + _jobId).toBuilder(todo);
|
||||||
} catch (std::exception const& e) {
|
} catch (std::exception const&) {
|
||||||
LOG_TOPIC(INFO, Logger::AGENCY) <<
|
LOG_TOPIC(INFO, Logger::AGENCY) <<
|
||||||
"Failed to get key " + toDoPrefix + _jobId + " from agency snapshot";
|
"Failed to get key " + toDoPrefix + _jobId + " from agency snapshot";
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -64,7 +64,7 @@ bool FailedServer::start() const {
|
||||||
todo.openArray();
|
todo.openArray();
|
||||||
try {
|
try {
|
||||||
_snapshot(toDoPrefix + _jobId).toBuilder(todo);
|
_snapshot(toDoPrefix + _jobId).toBuilder(todo);
|
||||||
} catch (std::exception const& e) {
|
} catch (std::exception const&) {
|
||||||
LOG_TOPIC(INFO, Logger::AGENCY) <<
|
LOG_TOPIC(INFO, Logger::AGENCY) <<
|
||||||
"Failed to get key " + toDoPrefix + _jobId + " from agency snapshot";
|
"Failed to get key " + toDoPrefix + _jobId + " from agency snapshot";
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -617,7 +617,7 @@ int Node::getInt() const {
|
||||||
if (type() == NODE) {
|
if (type() == NODE) {
|
||||||
throw StoreException("Must not convert NODE type to int");
|
throw StoreException("Must not convert NODE type to int");
|
||||||
}
|
}
|
||||||
return slice().getInt();
|
return static_cast<int>(slice().getInt());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -265,7 +265,7 @@ void Supervision::getUniqueIds() {
|
||||||
try {
|
try {
|
||||||
latestId = std::stoul(
|
latestId = std::stoul(
|
||||||
_agent->readDB().get(_agencyPrefix + "/Sync/LatestID").slice().toJson());
|
_agent->readDB().get(_agencyPrefix + "/Sync/LatestID").slice().toJson());
|
||||||
} catch (std::exception const& e) {
|
} catch (std::exception const&) {
|
||||||
std::this_thread::sleep_for (std::chrono::seconds(1));
|
std::this_thread::sleep_for (std::chrono::seconds(1));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue