mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Merge polly.(none):/home/kaa/src/maint/mysql-5.0-maint
into polly.(none):/home/kaa/src/maint/mysql-5.1-maint mysql-test/suite/binlog/t/binlog_killed.test: Auto merged mysys/my_write.c: Auto merged
This commit is contained in:
commit
c8282d7b6b
2 changed files with 5 additions and 1 deletions
|
@ -242,7 +242,7 @@ drop function bug27563;
|
|||
drop function bug27565;
|
||||
}
|
||||
|
||||
system rm $MYSQLTEST_VARDIR/tmp/kill_query_calling_sp.binlog ;
|
||||
remove_file $MYSQLTEST_VARDIR/tmp/kill_query_calling_sp.binlog ;
|
||||
|
||||
drop table t1,t2,t3;
|
||||
|
||||
|
|
|
@ -29,6 +29,10 @@ size_t my_write(int Filedes, const uchar *Buffer, size_t Count, myf MyFlags)
|
|||
Filedes, (long) Buffer, (ulong) Count, MyFlags));
|
||||
errors=0; written=0;
|
||||
|
||||
/* The behavior of write(fd, buf, 0) is not portable */
|
||||
if (unlikely(!Count))
|
||||
return 0;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
if ((writenbytes= write(Filedes, Buffer, Count)) == Count)
|
||||
|
|
Loading…
Reference in a new issue