summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHe Zhenxing <zhenxing.he@sun.com>2009-03-06 17:32:00 +0800
committerHe Zhenxing <zhenxing.he@sun.com>2009-03-06 17:32:00 +0800
commite7605e338b0f2126cae6083a3f92f210f4ff2488 (patch)
tree97641cee8ff185e623a4631361a352115743f178 /include
parent6ac6c9ed4880224a3dc1f631c3d78b9b1acfc41b (diff)
downloadmariadb-git-e7605e338b0f2126cae6083a3f92f210f4ff2488.tar.gz
BUG#22082 Slave hangs(holds mutex) on "disk full"
When disk is full, server may waiting for free space while writing binlog, relay-log or MyISAM tables. The server will continue after user have freed some space. But the error message printed was not quite clear about the how often the error message is printed, and there will be a delay before the server continue and user freeing space. And caused users thinking that the server was hanging forever. This patch fixed the problem by making the error messages printed more clear. The error message is split into two part, the first part will only be printed once, and the second part will be printed very 10 times. Message first part: Disk is full writing '<filename>' (Errcode: <errorno>). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space) Message second part: Retry in 60 secs, Message reprinted in 600 secs
Diffstat (limited to 'include')
-rw-r--r--include/my_sys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h
index 5dc73bf84d9..8031a6934fe 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -636,6 +636,7 @@ extern int nt_share_delete(const char *name,myf MyFlags);
extern void TERMINATE(FILE *file);
#endif
extern void init_glob_errs(void);
+extern void wait_for_free_space(const char *filename, int errors);
extern FILE *my_fopen(const char *FileName,int Flags,myf MyFlags);
extern FILE *my_fdopen(File Filedes,const char *name, int Flags,myf MyFlags);
extern int my_fclose(FILE *fd,myf MyFlags);