Commit 4cefe863 authored by Vasil Dimov's avatar Vasil Dimov

Port the test for Bug#14708715 from 5.1/innodb_plugin into 5.1/innodb

although the bug does not exist in 5.1/innodb.
parent 8baabf30
...@@ -1209,6 +1209,22 @@ os_file_create( ...@@ -1209,6 +1209,22 @@ os_file_create(
ulint type, /* in: OS_DATA_FILE or OS_LOG_FILE */ ulint type, /* in: OS_DATA_FILE or OS_LOG_FILE */
ibool* success)/* out: TRUE if succeed, FALSE if error */ ibool* success)/* out: TRUE if succeed, FALSE if error */
{ {
#ifdef __WIN__
DBUG_EXECUTE_IF(
"ib_create_table_fail_disk_full",
*success = FALSE;
SetLastError(ERROR_DISK_FULL);
return((os_file_t) -1);
);
#else /* __WIN__ */
DBUG_EXECUTE_IF(
"ib_create_table_fail_disk_full",
*success = FALSE;
errno = ENOSPC;
return((os_file_t) -1);
);
#endif /* __WIN__ */
#ifdef __WIN__ #ifdef __WIN__
os_file_t file; os_file_t file;
DWORD share_mode = FILE_SHARE_READ; DWORD share_mode = FILE_SHARE_READ;
......
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