> Hi!
> 
> ----- Original Message -----
> From: "Wan YU" <[EMAIL PROTECTED]>
> Newsgroups: mailing.database.mysql
> Sent: Thursday, June 27, 2002 8:25 PM
> Subject: BUG REPORT FOR MYSQL
> 
> 
> > Hi,
> >
> > I'm doing research on DBMS recently and have found
> > some bugs in mysql's source codes.I think it will be
> > more convenient to point out them directly than using
> > mysqlbug.The following are my finds.
> >
> > mysqladmin -version output:
> >
> > mysqladmin  Ver 8.22 Distrib 3.23.44, for pc-linux-gnu
> > on i686
> > Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX
> > DataKonsult AB
> >
> > BUGS REPORT:
> >
> > 1. file:    innobase/os/os0sync.c
> >    function: os_event_wait_time
> >    line:    237
> >
> >    This function uses Windows API
> > "WaitForSingleObject" while passing a wrong parameter
> > to it. Because WaitForSingleObject wants the second
> > parameter to be quantity of milliseconds while it
> > actually gets the quantity of seconds.
> 
> The parameter to os_event_wait_time function is in microseconds. To get
> milliseconds we divide it by 1000.
> 
> > FIX RECOMMENDATION: Maybe it should be modified this
> > way,
> >
> > err = WaitForSingleObject(event, time);
> >
> > 2. file:     innobase/log/log0log.c
> >    function: log_archive_do
> >    line:     2171
> >
> >    There will be a deadlock obviously!
> 
> These lines of code are not used in MySQL. But I do not see a deadlock
> either: the thread just waits that an event becomes signaled again.
> 
> > FIX RECOMMENTDATION: Comment this statement.
> >
> >
> >
> > Please check these places and I'm expecting your
> > answer.
> > Good luck,
> >
> > sincerely,
> >
> > YBETTER
> 
> Regards,
> 
> Heikki
> Innobase Oy
> (sql database)



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to