summaryrefslogtreecommitdiff
path: root/mysys/my_write.c
diff options
context:
space:
mode:
authorVenkatesh Duggirala <venkatesh.duggirala@oracle.com>2013-03-01 15:01:32 +0530
committerVenkatesh Duggirala <venkatesh.duggirala@oracle.com>2013-03-01 15:01:32 +0530
commit0ebb72b50814c2ffec28bc9d0b02947c263d2e9b (patch)
tree660c3989c47a44ade1d656590a1af90ef2221853 /mysys/my_write.c
parenta4a50271a6717d48a7721da7231b05620e2a8519 (diff)
downloadmariadb-git-0ebb72b50814c2ffec28bc9d0b02947c263d2e9b.tar.gz
BUG#11753923-SQL THREAD CRASHES ON DISK FULL
Fixing post push issue Simulator name used needs to be changed to make it work properly. Analysis: Debug control list addition (ListAddDel function dbug.c file) code was written in such a way that if new element is subset of already existing element, then the new element is not added. i.e., set @@global.debug = '+d,abcd', is existing in the list then you cannot add "a" or "ab" or "abc" in the list.
Diffstat (limited to 'mysys/my_write.c')
-rw-r--r--mysys/my_write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mysys/my_write.c b/mysys/my_write.c
index c474b86c60e..ef15e9a55b6 100644
--- a/mysys/my_write.c
+++ b/mysys/my_write.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@ 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_EXECUTE_IF ("simulate_no_free_space_error",
{ DBUG_SET("+d,simulate_file_write_error");});
for (;;)
{
@@ -67,7 +67,7 @@ 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_EXECUTE_IF("simulate_no_free_space_error",
{ DBUG_SET("-d,simulate_file_write_error");});
continue;
}