dont use read ahead for map.first/last (#3110)

This commit is contained in:
Rafael Weinstein
2017-01-24 13:12:09 -08:00
committed by GitHub
parent e72ab4a097
commit edf8b55f26
2 changed files with 2 additions and 2 deletions

View File

@@ -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",

View File

@@ -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;
}