Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37881419
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: libdb5.3

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: patch.1.3
Скачать


*** 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;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin