Merge ssh://bk-internal.mysql.com//home/bk/mysql-5.0-maint

into  polly.(none):/home/kaa/src/maint/mysql-5.0-maint
This commit is contained in:
unknown 2007-10-24 23:01:31 +04:00
commit ae69a9012d

View File

@ -29,6 +29,10 @@ uint my_write(int Filedes, const byte *Buffer, uint Count, myf MyFlags)
Filedes, (long) Buffer, Count, MyFlags));
errors=0; written=0L;
/* The behavior of write(fd, buf, 0) is not portable */
if (unlikely(!Count))
return 0;
for (;;)
{
if ((writenbytes = (uint) write(Filedes, Buffer, Count)) == Count)