summaryrefslogtreecommitdiff
path: root/storage
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
commit4cefe863aee8430a09e74a52feef0eb9ea4fae9b (patch)
treeb7c8237012e3fae26f3059a85812f1086c902525 /storage
parent8baabf30900c30d733ce3b8942512d8cce191582 (diff)
downloadmariadb-git-4cefe863aee8430a09e74a52feef0eb9ea4fae9b.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')
-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;