1177
if (srv_file_flush_method_str == NULL) {
1177
if (srv_file_flush_method_str.empty()) {
1178
1178
/* These are the default options */
1180
1180
srv_unix_file_flush_method = SRV_UNIX_FSYNC;
1182
1182
srv_win_file_flush_method = SRV_WIN_IO_UNBUFFERED;
1183
1183
#ifndef __WIN__
1184
} else if (0 == ut_strcmp(srv_file_flush_method_str, "fsync")) {
1184
} else if (srv_file_flush_method_str == "fsync") {
1185
1185
srv_unix_file_flush_method = SRV_UNIX_FSYNC;
1187
} else if (0 == ut_strcmp(srv_file_flush_method_str, "O_DSYNC")) {
1187
} else if (srv_file_flush_method_str == "O_DSYNC") {
1188
1188
srv_unix_file_flush_method = SRV_UNIX_O_DSYNC;
1190
} else if (0 == ut_strcmp(srv_file_flush_method_str, "O_DIRECT")) {
1190
} else if (srv_file_flush_method_str == "O_DIRECT") {
1191
1191
srv_unix_file_flush_method = SRV_UNIX_O_DIRECT;
1193
} else if (0 == ut_strcmp(srv_file_flush_method_str, "littlesync")) {
1193
} else if (srv_file_flush_method_str == "littlesync") {
1194
1194
srv_unix_file_flush_method = SRV_UNIX_LITTLESYNC;
1196
} else if (0 == ut_strcmp(srv_file_flush_method_str, "nosync")) {
1196
} else if (srv_file_flush_method_str == "nosync") {
1197
1197
srv_unix_file_flush_method = SRV_UNIX_NOSYNC;
1199
} else if (0 == ut_strcmp(srv_file_flush_method_str, "normal")) {
1199
} else if (srv_file_flush_method_str == "normal") {
1200
1200
srv_win_file_flush_method = SRV_WIN_IO_NORMAL;
1201
1201
srv_use_native_aio = FALSE;
1203
} else if (0 == ut_strcmp(srv_file_flush_method_str, "unbuffered")) {
1203
} else if (srv_file_flush_method_str == "unbuffered") {
1204
1204
srv_win_file_flush_method = SRV_WIN_IO_UNBUFFERED;
1205
1205
srv_use_native_aio = FALSE;
1207
} else if (0 == ut_strcmp(srv_file_flush_method_str,
1208
"async_unbuffered")) {
1207
} else if (srv_file_flush_method_str == "async_unbuffered") {
1209
1208
srv_win_file_flush_method = SRV_WIN_IO_UNBUFFERED;
1212
1211
fprintf(stderr,
1213
1212
"InnoDB: Unrecognized value %s for"
1214
1213
" innodb_flush_method\n",
1215
srv_file_flush_method_str);
1214
srv_file_flush_method_str.c_str());
1216
1215
return(DB_ERROR);