Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
4b7e4303
Commit
4b7e4303
authored
Jul 25, 2017
by
Hallvard Furuseth
Committed by
Howard Chu
Oct 10, 2020
Browse files
mdb_page_touch: Always set MDB_TXN_ERROR on error
parent
9e3603eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
4b7e4303
...
...
@@ -2848,8 +2848,10 @@ mdb_page_touch(MDB_cursor *mc)
mdb_cassert
(
mc
,
dl
[
0
].
mid
<
MDB_IDL_UM_MAX
);
/* No - copy it */
np
=
mdb_page_malloc
(
txn
,
1
,
1
);
if (!np)
return ENOMEM;
if
(
!
np
)
{
rc
=
ENOMEM
;
goto
fail
;
}
mid
.
mid
=
pgno
;
mid
.
mptr
=
np
;
rc
=
mdb_mid2l_insert
(
dl
,
&
mid
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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