summaryrefslogtreecommitdiff
path: root/mysys/my_write.c
diff options
context:
space:
mode:
authorguilhem@mysql.com <>2005-01-06 21:31:47 +0100
committerguilhem@mysql.com <>2005-01-06 21:31:47 +0100
commit1f6c72ccf1099d466b092294e63d10a7e713ed80 (patch)
tree62aba5a6e7de1b817db9ff801a03c6084d22f513 /mysys/my_write.c
parenta8861fe9ece85eb63e44bee1ad1b21f32fd15060 (diff)
parent4b2d003bf1337a2729511d2456db07b20df34709 (diff)
downloadmariadb-git-1f6c72ccf1099d466b092294e63d10a7e713ed80.tar.gz
Merge mysql.com:/home/mysql_src/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.1-clean
Diffstat (limited to 'mysys/my_write.c')
-rw-r--r--mysys/my_write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mysys/my_write.c b/mysys/my_write.c
index 2df3a31e774..4e8369480b3 100644
--- a/mysys/my_write.c
+++ b/mysys/my_write.c
@@ -49,8 +49,7 @@ uint my_write(int Filedes, const byte *Buffer, uint Count, myf MyFlags)
MyFlags&= ~ MY_WAIT_IF_FULL; /* End if aborted by user */
#endif
if ((my_errno == ENOSPC || my_errno == EDQUOT) &&
- (MyFlags & MY_WAIT_IF_FULL) &&
- (uint) writenbytes != (uint) -1)
+ (MyFlags & MY_WAIT_IF_FULL))
{
if (!(errors++ % MY_WAIT_GIVE_USER_A_MESSAGE))
my_error(EE_DISK_FULL,MYF(ME_BELL | ME_NOREFRESH),