Update fdbclient/VersionedMap.h

Co-Authored-By: Steve Atherton <stevea@apple.com>
This commit is contained in:
negoyal 2019-09-26 21:57:54 -07:00 committed by GitHub
parent d049105a69
commit 2526c1a0d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -520,7 +520,7 @@ public:
void forgetVersionsBefore(Version newOldestVersion) {
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;
--r;
// if the specified newOldestVersion does not exist, insert a new