Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
e77918a9
Commit
e77918a9
authored
Mar 20, 2018
by
Howard Chu
Browse files
ITS
#8819
can't use fakepage mp_ptrs directly
parent
a351fe0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
e77918a9
...
...
@@ -6799,8 +6799,9 @@ prep_subDB:
}
else
{
memcpy
((
char
*
)
mp
+
mp
->
mp_upper
+
PAGEBASE
,
(
char
*
)
fp
+
fp
->
mp_upper
+
PAGEBASE
,
olddata
.
mv_size
-
fp
->
mp_upper
-
PAGEBASE
);
memcpy
((
char
*
)(
&
mp
->
mp_ptrs
),
(
char
*
)(
&
fp
->
mp_ptrs
),
NUMKEYS
(
fp
)
*
sizeof
(
mp
->
mp_ptrs
[
0
]));
for
(
i
=
0
;
i
<
NUMKEYS
(
fp
);
i
++
)
mp
->
mp_ptrs
[
i
]
=
fp
->
mp_ptrs
[
i
]
+
offset
;
mp
->
mp_ptrs
[
i
]
+
=
offset
;
}
}
...
...
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