mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Changed pthread_mutex_init() to use new MY_MUTEX_INIT.. macro
(For glibc 2.2)
This commit is contained in:
@ -171,7 +171,7 @@ bool berkeley_init(void)
|
||||
|
||||
(void) hash_init(&bdb_open_tables,32,0,0,
|
||||
(hash_get_key) bdb_get_key,0,0);
|
||||
pthread_mutex_init(&bdb_mutex,NULL);
|
||||
pthread_mutex_init(&bdb_mutex,MY_MUTEX_INIT_FAST);
|
||||
DBUG_RETURN(db_env == 0);
|
||||
}
|
||||
|
||||
@ -2151,7 +2151,7 @@ static BDB_SHARE *get_share(const char *table_name, TABLE *table)
|
||||
return 0; /* purecov: inspected */
|
||||
}
|
||||
thr_lock_init(&share->lock);
|
||||
pthread_mutex_init(&share->mutex,NULL);
|
||||
pthread_mutex_init(&share->mutex,MY_MUTEX_INIT_FAST);
|
||||
}
|
||||
}
|
||||
pthread_mutex_unlock(&bdb_mutex);
|
||||
|
Reference in New Issue
Block a user