Fix broken mdb_page_get(ovpage) optimization

mdb.master3
Hallvard Furuseth 7 years ago committed by Howard Chu
parent ca8e48d994
commit 74928f6a3b
  1. 5
      libraries/liblmdb/mdb.c

@ -8341,10 +8341,7 @@ mdb_cursor_del(MDB_cursor *mc, unsigned int flags)
MDB_ovpage ovp; MDB_ovpage ovp;
memcpy(&ovp, NODEDATA(leaf), sizeof(ovp)); memcpy(&ovp, NODEDATA(leaf), sizeof(ovp));
/* note we don't care about page count here since if ((rc = MDB_PAGE_GET(mc, ovp.op_pgno, ovp.op_pages, &omp, NULL)) ||
* we're just adding pgno to the freelist anyway
*/
if ((rc = MDB_PAGE_GET(mc, ovp.op_pgno, 1, &omp, NULL)) ||
(rc = mdb_ovpage_free(mc, omp))) (rc = mdb_ovpage_free(mc, omp)))
goto fail; goto fail;
} }

Loading…
Cancel
Save