mirror of https://gitee.com/bigwinds/arangodb
assertion failures in store on restarting following agents (#8562)
This commit is contained in:
parent
abfe61de33
commit
a8ad22f206
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue