1
0
Fork 0

assertion failures in store on restarting following agents (#8562)

This commit is contained in:
Kaveh Vahedipour 2019-03-26 10:38:18 +01:00 committed by Max Neunhöffer
parent abfe61de33
commit a8ad22f206
1 changed files with 2 additions and 2 deletions

View File

@ -373,7 +373,7 @@ index_t State::logFollower(query_t const& transactions) {
// Now we must completely erase our log and compaction snapshots and
// start from the snapshot
Store snapshot(_agent, "snapshot");
snapshot = slices[0].get("readDB");
snapshot = slices[0];
if (!storeLogFromSnapshot(snapshot, snapshotIndex, snapshotTerm)) {
LOG_TOPIC(FATAL, Logger::AGENCY)
<< "Could not restore received log snapshot.";
@ -1482,7 +1482,7 @@ std::shared_ptr<VPackBuilder> State::latestAgencyState(TRI_vocbase_t& vocbase,
// Result can only have length 0 or 1.
VPackSlice ii = result[0].resolveExternals();
buffer_t tmp = std::make_shared<arangodb::velocypack::Buffer<uint8_t>>();
store = ii.get("readDB");
store = ii;
index = arangodb::basics::StringUtils::uint64(ii.get("_key").copyString());
term = ii.get("term").getNumber<uint64_t>();
LOG_TOPIC(INFO, Logger::AGENCY)