Value: { \ BTREE_CURSOR *__cp = (BTREE_CURSOR *)(dbc)->internal; \ ret = 0; \ if (STD_LOCKING(dbc) && \ __cp->lock_mode != DB_LOCK_WRITE && \ ((ret) = CDB___db_lget(dbc, \ __cp->lock.off == LOCK_INVALID ? 0 : LCK_COUPLE, \ __cp->pgno, DB_LOCK_WRITE, 0, &__cp->lock)) == 0) \ __cp->lock_mode = DB_LOCK_WRITE; \ } Definition at line 110 of file bt_cursor.c. Referenced by __bam_c_first(), __bam_c_last(), __bam_c_put(), and __bam_c_writelock().
|