* where we decide to try and copy too much onto the left page.
* Make sure that doesn't happen.
*/
- if (skip <= off && used + nbytes >= full || nxt == top - 1) {
+ if (skip <= off &&
+ used + nbytes + sizeof(indx_t) >= full || nxt == top - 1) {
--off;
break;
}
memmove((char *)l + l->upper, src, nbytes);
}
- used += nbytes;
+ used += nbytes + sizeof(indx_t);
if (used >= half) {
if (!isbigkey || bigkeycnt == 3)
break;
Release: 11
Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz
# db-1.85 upstream patches
-Patch12: http://www.oracle.com/technology/products/berkeley-db/db/update/1.85/patch.1.3
Patch13: http://www.oracle.com/technology/products/berkeley-db/db/update/1.85/patch.1.4
# other patches
Patch20: db-1.85-errno.patch
%setup -q -n db-%{version}
pushd db.1.85
-%patch12 -p0 -b .1.3
%patch13 -p0 -b .1.4
%patch20 -p1 -b .errno
popd
+++ /dev/null
-*** btree/bt_split.c.orig Sat Feb 8 10:14:10 1997
---- btree/bt_split.c Sat Feb 8 10:14:51 1997
-***************
-*** 673,679 ****
- * where we decide to try and copy too much onto the left page.
- * Make sure that doesn't happen.
- */
-! if (skip <= off && used + nbytes >= full || nxt == top - 1) {
- --off;
- break;
- }
---- 673,680 ----
- * where we decide to try and copy too much onto the left page.
- * Make sure that doesn't happen.
- */
-! if (skip <= off &&
-! used + nbytes + sizeof(indx_t) >= full || nxt == top - 1) {
- --off;
- break;
- }
-***************
-*** 686,692 ****
- memmove((char *)l + l->upper, src, nbytes);
- }
-
-! used += nbytes;
- if (used >= half) {
- if (!isbigkey || bigkeycnt == 3)
- break;
---- 687,693 ----
- memmove((char *)l + l->upper, src, nbytes);
- }
-
-! used += nbytes + sizeof(indx_t);
- if (used >= half) {
- if (!isbigkey || bigkeycnt == 3)
- break;