mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-22 06:40:01 +08:00
Update fdbclient/VersionedMap.h
Co-Authored-By: Steve Atherton <stevea@apple.com>
This commit is contained in:
parent
d049105a69
commit
2526c1a0d2
@ -520,7 +520,7 @@ public:
|
|||||||
|
|
||||||
void forgetVersionsBefore(Version newOldestVersion) {
|
void forgetVersionsBefore(Version newOldestVersion) {
|
||||||
ASSERT( newOldestVersion <= latestVersion );
|
ASSERT( newOldestVersion <= latestVersion );
|
||||||
auto r = upper_bound(roots.begin(), roots.end(), newOldestVersion, compare());
|
auto r = upper_bound(roots.begin(), roots.end(), newOldestVersion, rootsComparator());
|
||||||
auto upper = r;
|
auto upper = r;
|
||||||
--r;
|
--r;
|
||||||
// if the specified newOldestVersion does not exist, insert a new
|
// if the specified newOldestVersion does not exist, insert a new
|
||||||
|
Loading…
x
Reference in New Issue
Block a user