~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/mtr0mtr.ic

  • Committer: Monty Taylor
  • Date: 2008-09-15 17:24:04 UTC
  • Revision ID: monty@inaugust.com-20080915172404-ygh6hiyu0q7qpa9x
Removed strndup calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
        memo = &(mtr->memo);
58
58
 
59
 
        slot = (mtr_memo_slot_t*) dyn_array_push(memo, sizeof *slot);
 
59
        slot = dyn_array_push(memo, sizeof(mtr_memo_slot_t));
60
60
 
61
61
        slot->object = object;
62
62
        slot->type = type;
103
103
 
104
104
        ut_ad(dyn_array_get_data_size(memo) > savepoint);
105
105
 
106
 
        slot = (mtr_memo_slot_t*) dyn_array_get_element(memo, savepoint);
 
106
        slot = dyn_array_get_element(memo, savepoint);
107
107
 
108
108
        ut_ad(slot->object == lock);
109
109
        ut_ad(slot->type == MTR_MEMO_S_LOCK);
120
120
ibool
121
121
mtr_memo_contains(
122
122
/*==============*/
123
 
                                /* out: TRUE if contains */
124
 
        mtr_t*          mtr,    /* in: mtr */
125
 
        const void*     object, /* in: object to search */
126
 
        ulint           type)   /* in: type of object */
 
123
                        /* out: TRUE if contains */
 
124
        mtr_t*  mtr,    /* in: mtr */
 
125
        void*   object, /* in: object to search */
 
126
        ulint   type)   /* in: type of object */
127
127
{
128
128
        mtr_memo_slot_t* slot;
129
129
        dyn_array_t*    memo;