Blame SOURCES/patch.1.3

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