~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/sync/sync0arr.c

  • Committer: Monty Taylor
  • Date: 2010-11-26 22:50:54 UTC
  • mfrom: (1953.1.6 build)
  • Revision ID: mordred@inaugust.com-20101126225054-sg90svw8579t5p3i
Stewart - InnoDB 1.1.1
Monty - Fixed some autoconf tests which were returning false positives.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
                                        since creation of the array */
139
139
};
140
140
 
 
141
#ifdef UNIV_PFS_MUTEX
 
142
/* Key to register the mutex with performance schema */
 
143
UNIV_INTERN mysql_pfs_key_t     syn_arr_mutex_key;
 
144
#endif
 
145
 
141
146
#ifdef UNIV_SYNC_DEBUG
142
147
/******************************************************************//**
143
148
This function is called only in the debug version. Detects a deadlock
247
252
        if (protection == SYNC_ARRAY_OS_MUTEX) {
248
253
                arr->os_mutex = os_mutex_create(NULL);
249
254
        } else if (protection == SYNC_ARRAY_MUTEX) {
250
 
                mutex_create(&arr->mutex, SYNC_NO_ORDER_CHECK);
 
255
                mutex_create(syn_arr_mutex_key,
 
256
                             &arr->mutex, SYNC_NO_ORDER_CHECK);
251
257
        } else {
252
258
                ut_error;
253
259
        }