Skip to content

Commit 2a38b8b

Browse files
author
Venkatesh Duggirala
committed
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.
1 parent d1c1981 commit 2a38b8b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mysys/errors.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -117,7 +117,7 @@ void wait_for_free_space(const char *filename, int errors)
117117
MY_WAIT_FOR_USER_TO_FIX_PANIC,
118118
MY_WAIT_GIVE_USER_A_MESSAGE * MY_WAIT_FOR_USER_TO_FIX_PANIC );
119119
}
120-
DBUG_EXECUTE_IF("simulate_file_write_error_once",
120+
DBUG_EXECUTE_IF("simulate_no_free_space_error",
121121
{
122122
(void) sleep(1);
123123
return;

mysys/my_write.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
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)
3333
if (unlikely(!Count))
3434
DBUG_RETURN(0);
3535

36-
DBUG_EXECUTE_IF ("simulate_file_write_error_once",
36+
DBUG_EXECUTE_IF ("simulate_no_free_space_error",
3737
{ DBUG_SET("+d,simulate_file_write_error");});
3838
for (;;)
3939
{
@@ -67,7 +67,7 @@ size_t my_write(File Filedes, const uchar *Buffer, size_t Count, myf MyFlags)
6767
{
6868
wait_for_free_space(my_filename(Filedes), errors);
6969
errors++;
70-
DBUG_EXECUTE_IF("simulate_file_write_error_once",
70+
DBUG_EXECUTE_IF("simulate_no_free_space_error",
7171
{ DBUG_SET("-d,simulate_file_write_error");});
7272
continue;
7373
}

0 commit comments

Comments
 (0)