summaryrefslogtreecommitdiff
path: root/mysys/my_pread.c
diff options
context:
space:
mode:
authorHe Zhenxing <zhenxing.he@sun.com>2009-03-06 17:38:14 +0800
committerHe Zhenxing <zhenxing.he@sun.com>2009-03-06 17:38:14 +0800
commit5229ef4ac8d187760b2ed2c7a8108e03e3185da7 (patch)
tree2f87ecb15bf2110f5197c10da49c1cf6db1420e1 /mysys/my_pread.c
parent583390388916e21b9008fdc3871df9f1304bf8c2 (diff)
parent37068efd819cbb8f564609ebca46ae47872b3864 (diff)
downloadmariadb-git-5229ef4ac8d187760b2ed2c7a8108e03e3185da7.tar.gz
Merge BUG#22082 from 5.0-bugteam to 5.1-bugteam
Diffstat (limited to 'mysys/my_pread.c')
-rw-r--r--mysys/my_pread.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mysys/my_pread.c b/mysys/my_pread.c
index de7a2b611ed..156862ec414 100644
--- a/mysys/my_pread.c
+++ b/mysys/my_pread.c
@@ -161,10 +161,8 @@ size_t my_pwrite(int Filedes, const uchar *Buffer, size_t Count,
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;
}
if ((writenbytes && writenbytes != (size_t) -1) || my_errno == EINTR)