mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-27 03:09:14 -06:00
dont use read ahead for map.first/last (#3110)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@attic/noms",
|
||||
"license": "Apache-2.0",
|
||||
"version": "69.0.0",
|
||||
"version": "69.1.0",
|
||||
"description": "Noms JS SDK",
|
||||
"repository": "https://github.com/attic-labs/noms/tree/master/js/noms",
|
||||
"main": "dist/commonjs/noms.js",
|
||||
|
||||
@@ -97,7 +97,7 @@ export default class Map<K: Value, V: Value> extends
|
||||
}
|
||||
|
||||
async _firstOrLast(last: boolean): Promise<?MapEntry<K, V>> {
|
||||
const cursor = await newCursorAt(this.sequence, null, false, last, true);
|
||||
const cursor = await newCursorAt(this.sequence, null, false, last, false);
|
||||
if (!cursor.valid) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user