*** 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;