Skip to content

Commit

Permalink
Remove harmful optimisation with MDB_VL32
Browse files Browse the repository at this point in the history
  • Loading branch information
chambart committed Sep 19, 2018
1 parent 35729e9 commit 52e57a3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libraries/liblmdb/mdb.c
Expand Up @@ -6122,11 +6122,7 @@ mdb_rpage_get(MDB_txn *txn, pgno_t pg0, MDB_page **ret)
id3.mref = 1;
if (id3.mid)
goto found;
/* don't map past last written page in read-only envs */
if ((env->me_flags & MDB_RDONLY) && pgno + MDB_RPAGE_CHUNK-1 > txn->mt_last_pgno)
id3.mcnt = txn->mt_last_pgno + 1 - pgno;
else
id3.mcnt = MDB_RPAGE_CHUNK;
id3.mcnt = MDB_RPAGE_CHUNK;
len = id3.mcnt * env->me_psize;
id3.mid = pgno;

Expand Down

0 comments on commit 52e57a3

Please sign in to comment.