Change firstGeq to compare to param1

This commit is contained in:
2024-05-15 16:31:34 -07:00
parent 464d720a6b
commit 007160098e
4 changed files with 26 additions and 9 deletions

View File

@@ -150,11 +150,9 @@ struct __attribute__((__visibility__("default"))) VersionedMap {
Impl *impl = nullptr;
};
/** Perform `count` "first greater than or equal to" queries. If there's a
* mutation intersecting `key[i]` at `version[i]` then `iterator[i]` will
* point to that mutation. Otherwise it points to the first mutation greater
* or `end()` if none exists. `version[i]` must be >= `getOldestVersion()`
* and <= `getVersion()`.
/** Perform `count` "first greater than or equal to" queries, comparing to
* mutations' `param1`. `version[i]` must be >= `getOldestVersion()` and <=
* `getVersion()`.
*
* Thread-safe as long as a version is not concurrently invalidated by
* `setOldestVersion`. There's a performance benefit if you pass iterator[i]