1
0
Fork 0

Term is a number not a string. (#3520)

This commit is contained in:
Max Neunhöffer 2017-10-26 12:02:38 +02:00 committed by GitHub
parent e9ade3f02d
commit cb05d33e17
1 changed files with 1 additions and 1 deletions

View File

@ -1289,7 +1289,7 @@ std::shared_ptr<VPackBuilder> State::latestAgencyState(
buffer_t tmp = std::make_shared<arangodb::velocypack::Buffer<uint8_t>>(); buffer_t tmp = std::make_shared<arangodb::velocypack::Buffer<uint8_t>>();
store = ii.get("readDB"); store = ii.get("readDB");
index = arangodb::basics::StringUtils::uint64(ii.get("_key").copyString()); index = arangodb::basics::StringUtils::uint64(ii.get("_key").copyString());
term = arangodb::basics::StringUtils::uint64(ii.get("term").copyString()); term = ii.get("term").getNumber<uint64_t>();
LOG_TOPIC(INFO, Logger::AGENCY) << "Read snapshot at index " LOG_TOPIC(INFO, Logger::AGENCY) << "Read snapshot at index "
<< index << " with term " << term; << index << " with term " << term;
} }