b1d0b3
*** btree/bt_split.c.orig	Sat Feb  8 10:14:10 1997
b1d0b3
--- btree/bt_split.c	Sat Feb  8 10:14:51 1997
b1d0b3
***************
b1d0b3
*** 673,679 ****
b1d0b3
  		 * where we decide to try and copy too much onto the left page.
b1d0b3
  		 * Make sure that doesn't happen.
b1d0b3
  		 */
b1d0b3
! 		if (skip <= off && used + nbytes >= full || nxt == top - 1) {
b1d0b3
  			--off;
b1d0b3
  			break;
b1d0b3
  		}
b1d0b3
--- 673,680 ----
b1d0b3
  		 * where we decide to try and copy too much onto the left page.
b1d0b3
  		 * Make sure that doesn't happen.
b1d0b3
  		 */
b1d0b3
! 		if (skip <= off &&
b1d0b3
! 		    used + nbytes + sizeof(indx_t) >= full || nxt == top - 1) {
b1d0b3
  			--off;
b1d0b3
  			break;
b1d0b3
  		}
b1d0b3
***************
b1d0b3
*** 686,692 ****
b1d0b3
  			memmove((char *)l + l->upper, src, nbytes);
b1d0b3
  		}
b1d0b3
  
b1d0b3
! 		used += nbytes;
b1d0b3
  		if (used >= half) {
b1d0b3
  			if (!isbigkey || bigkeycnt == 3)
b1d0b3
  				break;
b1d0b3
--- 687,693 ----
b1d0b3
  			memmove((char *)l + l->upper, src, nbytes);
b1d0b3
  		}
b1d0b3
  
b1d0b3
! 		used += nbytes + sizeof(indx_t);
b1d0b3
  		if (used >= half) {
b1d0b3
  			if (!isbigkey || bigkeycnt == 3)
b1d0b3
  				break;