*** btree/bt_cursor.c.orig Wed Dec 16 20:20:18 1998 --- btree/bt_cursor.c Wed Jan 6 16:02:36 1999 *************** *** 641,655 **** } /* ! * Move to the next item. If __bam_c_next returns DB_NOTFOUND ! * and we're doing an insert, reset the cursor back to the last ! * item and set the referenced memory location so callers know ! * to insert after the item, instead of before it. If not doing ! * an insert, return DB_NOTFOUND. */ ! if ((ret = __bam_c_next(dbc, cp, 1)) != 0) { ! if (ret != DB_NOTFOUND || iflagp == NULL) ! return (ret); goto use_last; } --- 641,655 ---- } /* ! * Move to the next item. If we reach the end of the page and ! * we're doing an insert, set the cursor to the last item and ! * set the referenced memory location so callers know to insert ! * after the item, instead of before it. If not inserting, we ! * return DB_NOTFOUND. */ ! if ((cp->indx += P_INDX) >= NUM_ENT(cp->page)) { ! if (iflagp == NULL) ! return (DB_NOTFOUND); goto use_last; }