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