diff options
author | He Zhenxing <zhenxing.he@sun.com> | 2009-03-06 17:38:14 +0800 |
---|---|---|
committer | He Zhenxing <zhenxing.he@sun.com> | 2009-03-06 17:38:14 +0800 |
commit | 4cef9cc0262c5b07871a3e4b08ea2d0e9d704ddf (patch) | |
tree | 2f87ecb15bf2110f5197c10da49c1cf6db1420e1 /mysys/my_write.c | |
parent | 5d5f0fcd47cce5f7a7b960b96fabc679e679ca23 (diff) | |
parent | c8532bc9796be534fc7870c9e3a540fcb5884de6 (diff) | |
download | mariadb-git-4cef9cc0262c5b07871a3e4b08ea2d0e9d704ddf.tar.gz |
Merge BUG#22082 from 5.0-bugteam to 5.1-bugteam
Diffstat (limited to 'mysys/my_write.c')
-rw-r--r-- | mysys/my_write.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mysys/my_write.c b/mysys/my_write.c index c67b1d8f3f2..d7eb390bdd2 100644 --- a/mysys/my_write.c +++ b/mysys/my_write.c @@ -54,10 +54,8 @@ size_t my_write(int Filedes, const uchar *Buffer, size_t Count, myf MyFlags) if ((my_errno == ENOSPC || my_errno == EDQUOT) && (MyFlags & MY_WAIT_IF_FULL)) { - if (!(errors++ % MY_WAIT_GIVE_USER_A_MESSAGE)) - my_error(EE_DISK_FULL,MYF(ME_BELL | ME_NOREFRESH), - my_filename(Filedes),my_errno,MY_WAIT_FOR_USER_TO_FIX_PANIC); - VOID(sleep(MY_WAIT_FOR_USER_TO_FIX_PANIC)); + wait_for_free_space(my_filename(Filedes), errors); + errors++; continue; } |