Logically revert 0071600

Return mutation intersecting query key if it exists
This commit is contained in:
2024-05-16 16:09:39 -07:00
parent d0bfdcb07d
commit 3819b83d78
3 changed files with 31 additions and 27 deletions

View File

@@ -150,9 +150,12 @@ struct __attribute__((__visibility__("default"))) VersionedMap {
Impl *impl = nullptr;
};
/** Perform `count` "first greater than or equal to" queries, comparing to
* mutations' `param1`. `version[i]` must be >= `getOldestVersion()` and <=
* `getVersion()`.
/** 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()`.
*
* Thread-safe as long as a version is not concurrently invalidated by
* `setOldestVersion`. There's a performance benefit if you pass iterator[i]