Commit 48f40550 authored by unknown's avatar unknown

dict0dict.ic Remove acquisition of the dictionary mutex: this may fix the hang...

dict0dict.ic	Remove acquisition of the dictionary mutex: this may fix the hang observed by Peter Zaitsev
os0file.c	Use O_SYNC instead of O_DSYNC because in Linux there may be a bug


innobase/os/os0file.c:
  Use O_SYNC instead of O_DSYNC because in Linux there may be a bug
innobase/include/dict0dict.ic:
  Remove acquisition of the dictionary mutex: this may fix the hang observed by Peter Zaitsev
parent 495c59d4
...@@ -651,8 +651,6 @@ dict_table_get_index( ...@@ -651,8 +651,6 @@ dict_table_get_index(
char* name) /* in: index name */ char* name) /* in: index name */
{ {
dict_index_t* index = NULL; dict_index_t* index = NULL;
mutex_enter(&(dict_sys->mutex));
index = dict_table_get_first_index(table); index = dict_table_get_first_index(table);
...@@ -665,8 +663,6 @@ dict_table_get_index( ...@@ -665,8 +663,6 @@ dict_table_get_index(
index = dict_table_get_next_index(index); index = dict_table_get_next_index(index);
} }
mutex_exit(&(dict_sys->mutex));
return(index); return(index);
} }
......
...@@ -347,9 +347,12 @@ os_file_create( ...@@ -347,9 +347,12 @@ os_file_create(
UT_NOT_USED(purpose); UT_NOT_USED(purpose);
#ifdef O_DSYNC /* Currently use only O_SYNC because there may be a bug in
Linux O_DSYNC! */
#ifdef O_SYNC
if (srv_unix_file_flush_method == SRV_UNIX_O_DSYNC) { if (srv_unix_file_flush_method == SRV_UNIX_O_DSYNC) {
create_flag = create_flag | O_DSYNC; create_flag = create_flag | O_SYNC;
} }
#endif #endif
if (create_mode == OS_FILE_CREATE) { if (create_mode == OS_FILE_CREATE) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment