Commit 116ced2f authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi
Browse files

os0file.c:

  Make os_file_flush to ignore the error we get from a raw device in fsync
parent 3fef3c7e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -582,6 +582,13 @@ os_file_flush(
		return(TRUE);
	}
	
	/* Since Linux returns EINVAL if the 'file' is actually a raw device,
	we choose to ignore that error */

	if (errno == EINVAL) {
	        return(TRUE);
	}

	fprintf(stderr,
		"InnoDB: Error: the OS said file flush did not succeed\n");