Fixed another Assert.

This commit is contained in:
negoyal 2019-09-04 10:59:44 -07:00
parent ce53f7a896
commit 91020abb5a
1 changed files with 5 additions and 3 deletions

View File

@ -524,7 +524,8 @@ public:
--r;
// if the specified newOldestVersion does not exist, copy the root from next lower version to newOldestVersion position
if (r->first != newOldestVersion) {
r = roots.emplace(upper, *r);
//r = roots.emplace(upper, *r);
r = roots.emplace(upper, newOldestVersion, getRoot(newOldestVersion));
}
UNSTOPPABLE_ASSERT(r->first == newOldestVersion);
@ -542,7 +543,8 @@ public:
// roots.emplace(upper_bound(roots.begin(), roots.end(), newOldestVersion, compare()), newOldestVersion, getRoot(newOldestVersion));
//}
if (r->first != newOldestVersion) {
r = roots.emplace(upper, *r);
//r = roots.emplace(upper, *r);
r = roots.emplace(upper, newOldestVersion, getRoot(newOldestVersion));
}
UNSTOPPABLE_ASSERT(r->first == newOldestVersion);