Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
24f437df
Commit
24f437df
authored
Jul 27, 2017
by
Hallvard Furuseth
Committed by
Howard Chu
Oct 10, 2020
Browse files
Less hungry mdb_pages_xkeep()
Skip pages that are dirty only in an ancestor txn
parent
97291744
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
24f437df
...
...
@@ -2297,11 +2297,11 @@ mdb_pages_xkeep(MDB_cursor *mc, unsigned pflags, int all)
for (j=0; j<m3->mc_snum; j++) {
mp = m3->mc_pg[j];
if ((mp->mp_flags & Mask) == pflags)
if (IS_
DIRTY_NW
(txn, mp))
if (IS_
WRITABLE
(txn, mp))
mp->mp_flags ^= P_KEEP;
}
if (MC_OVPG(m3) && ((MC_OVPG(m3)->mp_flags & Mask) == pflags) &&
IS_
DIRTY_NW
(txn, MC_OVPG(m3)))
IS_
WRITABLE
(txn, MC_OVPG(m3)))
MC_OVPG(m3)->mp_flags ^= P_KEEP;
mx = m3->mc_xcursor;
/* Proceed to mx if it is at a sub-database */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment