mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2000, 2010, 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
|
||||
@ -117,7 +117,7 @@ void wait_for_free_space(const char *filename, int errors)
|
||||
MY_WAIT_FOR_USER_TO_FIX_PANIC,
|
||||
MY_WAIT_GIVE_USER_A_MESSAGE * MY_WAIT_FOR_USER_TO_FIX_PANIC );
|
||||
}
|
||||
DBUG_EXECUTE_IF("simulate_file_write_error_once",
|
||||
DBUG_EXECUTE_IF("simulate_no_free_space_error",
|
||||
{
|
||||
(void) sleep(1);
|
||||
return;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user