Merge pull request #2423

bbb07f88 ITS#8728 fix MDB_VL32 freeing overflow page (Howard Chu)
This commit is contained in:
Riccardo Spagni 2017-09-12 13:10:43 +02:00
commit 3fd08bd37e
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 4 additions and 0 deletions

View File

@ -6288,6 +6288,10 @@ release:
if (rc) if (rc)
return rc; return rc;
} }
#ifdef MDB_VL32
if (mc->mc_ovpg == mp)
mc->mc_ovpg = NULL;
#endif
mc->mc_db->md_overflow_pages -= ovpages; mc->mc_db->md_overflow_pages -= ovpages;
return 0; return 0;
} }