Commit 20d0a090 authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi
Browse files

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
parent 147c51b5
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -652,8 +652,6 @@ dict_table_get_index(
{
	dict_index_t*	index	= NULL;
	
	mutex_enter(&(dict_sys->mutex));
	
	index = dict_table_get_first_index(table);

	while (index != NULL) {
@@ -665,8 +663,6 @@ dict_table_get_index(
		index = dict_table_get_next_index(index);
	}	
	
	mutex_exit(&(dict_sys->mutex));

	return(index);
}

+5 −2
Original line number Diff line number Diff line
@@ -347,9 +347,12 @@ os_file_create(

	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) {
	        create_flag = create_flag | O_DSYNC;
	        create_flag = create_flag | O_SYNC;
	}
#endif
	if (create_mode == OS_FILE_CREATE) {