diff options
| author | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 1999-01-18 06:59:18 +0000 |
|---|---|---|
| committer | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 1999-01-18 06:59:18 +0000 |
| commit | 3ba3e2cc4b63fa16707f51e735e751e62dd9526e (patch) | |
| tree | 2d073c94248fff7dcaa8a3b1356933e1dcd784db /contrib/global/dbpatches/patch.1.3 | |
| parent | 0823b5bf088ea8520ea23a0c424e4ecab62491d5 (diff) | |
Notes
Diffstat (limited to 'contrib/global/dbpatches/patch.1.3')
| -rw-r--r-- | contrib/global/dbpatches/patch.1.3 | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/global/dbpatches/patch.1.3 b/contrib/global/dbpatches/patch.1.3 new file mode 100644 index 000000000000..5ca03df2207b --- /dev/null +++ b/contrib/global/dbpatches/patch.1.3 @@ -0,0 +1,37 @@ +*** 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; |
