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