}
/* create a new root node and release the split buffers */
_bt_newroot(rel, buf, rbuf);
- _bt_relbuf(rel, buf, BT_WRITE);
- _bt_relbuf(rel, rbuf, BT_WRITE);
-
}
else
{
{
_bt_updateitem(rel, keysz, pbuf,
stack->bts_btitem, lowLeftItem);
- _bt_relbuf(rel, buf, BT_WRITE);
- _bt_relbuf(rel, rbuf, BT_WRITE);
+ _bt_wrtbuf(rel, buf);
+ _bt_wrtbuf(rel, rbuf);
}
else
{
/*
* Unlock the children before doing this
- *
- * Mmm ... I foresee problems here. - vadim 06/10/97
*/
- _bt_relbuf(rel, buf, BT_WRITE);
- _bt_relbuf(rel, rbuf, BT_WRITE);
+ _bt_wrtbuf(rel, buf);
+ _bt_wrtbuf(rel, rbuf);
/*
* A regular _bt_binsrch should find the right place
}
else
{
- _bt_relbuf(rel, buf, BT_WRITE);
- _bt_relbuf(rel, rbuf, BT_WRITE);
+ _bt_wrtbuf(rel, buf);
+ _bt_wrtbuf(rel, rbuf);
}
newskey = _bt_mkscankey(rel, &(new_item->bti_itup));
/* update metadata page with new root block number */
_bt_metaproot(rel, rootbknum, 0);
- WriteNoReleaseBuffer(lbuf);
- WriteNoReleaseBuffer(rbuf);
+ _bt_wrtbuf(rel, lbuf);
+ _bt_wrtbuf(rel, rbuf);
}
/*