slackware-current/source/l/db42/patch.4.2.52.4

37 lines
1.3 KiB
Groff
Raw Normal View History

*** btree/bt_rec.c.orig Tue Mar 22 09:41:49 2005
--- btree/bt_rec.c Tue Mar 22 09:42:11 2005
***************
*** 222,228 ****
* previous-page pointer updated to our new page. The next
* page must exist because we're redoing the operation.
*/
! if (!rootsplit && !IS_ZERO_LSN(argp->nlsn)) {
if ((ret =
__memp_fget(mpf, &argp->npgno, 0, &np)) != 0) {
ret = __db_pgerr(file_dbp, argp->npgno, ret);
--- 222,228 ----
* previous-page pointer updated to our new page. The next
* page must exist because we're redoing the operation.
*/
! if (!rootsplit && argp->npgno != PGNO_INVALID) {
if ((ret =
__memp_fget(mpf, &argp->npgno, 0, &np)) != 0) {
ret = __db_pgerr(file_dbp, argp->npgno, ret);
***************
*** 294,300 ****
* possible that the next-page never existed, we ignore it as
* if there's nothing to undo.
*/
! if (!rootsplit && !IS_ZERO_LSN(argp->nlsn)) {
if ((ret =
__memp_fget(mpf, &argp->npgno, 0, &np)) != 0) {
np = NULL;
--- 294,300 ----
* possible that the next-page never existed, we ignore it as
* if there's nothing to undo.
*/
! if (!rootsplit && argp->npgno != PGNO_INVALID) {
if ((ret =
__memp_fget(mpf, &argp->npgno, 0, &np)) != 0) {
np = NULL;