From 0ebb72b50814c2ffec28bc9d0b02947c263d2e9b Mon Sep 17 00:00:00 2001 From: Venkatesh Duggirala Date: Fri, 1 Mar 2013 15:01:32 +0530 Subject: 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. --- mysys/my_write.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mysys/my_write.c') 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; } -- cgit v1.2.1