projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
191d789
)
ITS#7210 fix check for freelist changes
author
Howard Chu
<hyc@symas.com>
Tue, 10 Apr 2012 02:24:47 +0000
(19:24 -0700)
committer
Howard Chu
<hyc@symas.com>
Tue, 10 Apr 2012 02:24:47 +0000
(19:24 -0700)
Was being fooled before because the newly malloc'd block had
the same address as the previously freed block.
libraries/libmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/libmdb/mdb.c
b/libraries/libmdb/mdb.c
index 46fd2683d7658e01f80a3aac1d533f1609dbad77..eddeb5e8993c0f46c39bf66d6ac17d5c5ddbaad5 100644
(file)
--- a/
libraries/libmdb/mdb.c
+++ b/
libraries/libmdb/mdb.c
@@
-1989,7
+1989,7
@@
again:
* due to freed overflow pages...
*/
mdb_cursor_put(&mc, &key, &data, 0);
- if (mop == env->me_pghead) {
+ if (mop == env->me_pghead
&& env->me_pghead->mo_txnid == id
) {
/* could have been used again here */
if (mop->mo_pages[0] != orig) {
data.mv_size = MDB_IDL_SIZEOF(mop->mo_pages);