summaryrefslogtreecommitdiff
path: root/mysys/my_write.c
diff options
context:
space:
mode:
authorVenkatesh Duggirala <venkatesh.duggirala@oracle.com>2013-01-02 18:32:38 +0530
committerVenkatesh Duggirala <venkatesh.duggirala@oracle.com>2013-01-02 18:32:38 +0530
commitce7e7a99a02000f301470d24087bcc7e813e85ec (patch)
tree57ce0b9be34a77613b322607f3cc26983de6c0cc /mysys/my_write.c
parentcc2df0069dc185421dc85ce7ab4bdff5e09020a6 (diff)
parent39323920302a039ac7e3a80052fbd68d31e5e75d (diff)
downloadmariadb-git-ce7e7a99a02000f301470d24087bcc7e813e85ec.tar.gz
BUG#11753923-SQL THREAD CRASHES ON DISK FULL
Merging fix from mysql-5.1
Diffstat (limited to 'mysys/my_write.c')
-rw-r--r--mysys/my_write.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysys/my_write.c b/mysys/my_write.c
index 4b1ccb6fe41..c474b86c60e 100644
--- a/mysys/my_write.c
+++ b/mysys/my_write.c
@@ -33,6 +33,8 @@ size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags)
if (unlikely(!Count))
DBUG_RETURN(0);
+ DBUG_EXECUTE_IF ("simulate_file_write_error_once",
+ { DBUG_SET("+d,simulate_file_write_error");});
for (;;)
{
#ifdef _WIN32
@@ -65,6 +67,8 @@ size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags)
{
wait_for_free_space(my_filename(Filedes), errors);
errors++;
+ DBUG_EXECUTE_IF("simulate_file_write_error_once",
+ { DBUG_SET("-d,simulate_file_write_error");});
continue;
}