summaryrefslogtreecommitdiff
path: root/storage/innobase/os
diff options
context:
space:
mode:
authorVasil Dimov <vasil.dimov@oracle.com>2012-10-09 16:29:00 +0300
committerVasil Dimov <vasil.dimov@oracle.com>2012-10-09 16:29:00 +0300
commitf4c0571679215e3687ab97f9192e944659b251b3 (patch)
treeb7c8237012e3fae26f3059a85812f1086c902525 /storage/innobase/os
parentd38df265ea719c8a4f5f8a3f39cbd0f97d952e97 (diff)
downloadmariadb-git-f4c0571679215e3687ab97f9192e944659b251b3.tar.gz
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.
Diffstat (limited to 'storage/innobase/os')
-rw-r--r--storage/innobase/os/os0file.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/storage/innobase/os/os0file.c b/storage/innobase/os/os0file.c
index 566c50381e7..9f68f93fd99 100644
--- a/storage/innobase/os/os0file.c
+++ b/storage/innobase/os/os0file.c
@@ -1210,6 +1210,22 @@ os_file_create(
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__
os_file_t file;
DWORD share_mode = FILE_SHARE_READ;
DWORD create_flag;