#define LOCKING_INIT ( dbp,
dbc   ) 

Value:

/*                                                              \
         * If we are running CDB, this had better be either a write     \
         * cursor or an immediate writer.  If it's a regular writer,    \
         * that means we have an IWRITE lock and we need to upgrade     \
         * it to a write lock.                                          \
         */                                                             \
        if (LOCKING((dbp)->dbenv)) {                            \
                if (!F_ISSET(dbc, DBC_WRITECURSOR | DBC_WRITER))        \
                        return(__db_wrlock_err(dbp->dbenv));            \
                                                                        \
                if (F_ISSET(dbc, DBC_WRITECURSOR) &&                    \
                    (ret = CDB_lock_get((dbp)->dbenv, (dbc)->locker,    \
                    DB_LOCK_UPGRADE, &(dbc)->lock_dbt, DB_LOCK_WRITE,   \
                    &(dbc)->mylock)) != 0)                              \
                        return (ret);                                   \
        }

Definition at line 33 of file db_cam.c.

Referenced by CDB___db_c_del(), and CDB___db_c_put().


Generated on Sun Jun 8 10:56:45 2008 for GNUmifluz by  doxygen 1.5.5