Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into ps-2.4-stable
Browse files Browse the repository at this point in the history
  • Loading branch information
erthink committed May 14, 2015
2 parents 8620232 + 1f5b573 commit 8f6e37d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/liblmdb/mdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2218,7 +2218,7 @@ mdb_page_alloc(MDB_cursor *mc, int num, MDB_page **mp)
txnid_t oldest = 0, last = 0;
MDB_cursor_op op;
MDB_cursor m2;
int found_old = 0;
int found_old;
unsigned enought = env->me_maxfree_1pg / 2;

/* mp == NULL when mdb_freelist_save() force reclaim to
Expand Down Expand Up @@ -2249,6 +2249,7 @@ mdb_page_alloc(MDB_cursor *mc, int num, MDB_page **mp)
const int lifo = (env->me_flags & MDB_LIFORECLAIM) != 0;

oomkick_retry:;
found_old = 0;
for (op = MDB_FIRST;; op = lifo ? MDB_PREV : MDB_NEXT) {
MDB_val key, data;
MDB_node *leaf;
Expand Down

0 comments on commit 8f6e37d

Please sign in to comment.