Fixed another Assert.
This commit is contained in:
parent
ce53f7a896
commit
91020abb5a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue