MySQL Lists are EOL. Please join:

List:Internals« Previous MessageNext Message »
From:Yuri Dario Date:June 5 2001 6:52am
Subject:Re: check table failing under OS/2
View as plain text  
Hi Monty,

>It could be a bug that you can't change a read lock to a write lock
>from another thread. On Windows and Linux this works without any

I fixed it, changing the way my_lock() handles timeouts; probably the
timeout feature of the lock API doesn't work in the way MySQL requires.
Now the status.test works, without fixing timeout value.

But in the Borland CBuilder 4 for Win32, the locking code doesn't make
differences between RDLCK and WRLCK; and LK_NBLCK (config-win.h)
doesn't wait for locks. This can be viewed in source\rtl\io\locking.c;
I don't know if this apply to M$ VC++ also (but surely LK_NB* is a non
blocking call on both compilers).

So Windows has a simpler way to handle locks.


>never have to do anymore, now when we have CHECK and REPAIR inside
>MySQL, I think you can just define that we should always use
>--skip-locking on OS2.

now it is not necessary, but removing lock code at all, could also
speed up processing (no need to call a dummy function).


Bye,

	Yuri Dario

/*
 * member of TeamOS/2 - Italy
 * http://www.quasarbbs.com/yuri
 * http://www.teamos2.it
 */


Thread
check table failing under OS/2Yuri Dario30 May
  • Re: check table failing under OS/2Sinisa Milivojevic31 May
  • check table failing under OS/2Michael Widenius1 Jun
    • Re: check table failing under OS/2Yuri Dario1 Jun
      • Re: check table failing under OS/2Michael Widenius1 Jun
        • Re: check table failing under OS/2Yuri Dario1 Jun
          • Re: check table failing under OS/2Michael Widenius2 Jun
            • Re: check table failing under OS/2Yuri Dario2 Jun
              • Re: check table failing under OS/2Michael Widenius3 Jun
                • Re: check table failing under OS/2Yuri Dario3 Jun
                  • Re: check table failing under OS/2Yuri Dario3 Jun
                    • Re: check table failing under OS/2Michael Widenius3 Jun
                      • Re: check table failing under OS/2Yuri Dario4 Jun
                  • Re: check table failing under OS/2Michael Widenius3 Jun
                    • Re: check table failing under OS/2Yuri Dario4 Jun
                      • Re: check table failing under OS/2Yuri Dario4 Jun
                        • Re: check table failing under OS/2Michael Widenius5 Jun
                      • Re: check table failing under OS/2Michael Widenius4 Jun
                        • Re: check table failing under OS/2Yuri Dario4 Jun
                          • Re: check table failing under OS/2Michael Widenius5 Jun
  • check table failing under OS/2Michael Widenius1 Jun
    • Re: check table failing under OS/2Yuri Dario1 Jun
    • Re: check table failing under OS/2Yuri Dario2 Jun
      • Re: check table failing under OS/2Michael Widenius3 Jun
        • Re: check table failing under OS/2Yuri Dario3 Jun
Re: check table failing under OS/2Yuri Dario5 Jun
Re: check table failing under OS/2Yuri Dario5 Jun
  • Re: check table failing under OS/2Michael Widenius6 Jun
    • Re: check table failing under OS/2Yuri Dario6 Jun
      • Re: check table failing under OS/2Michael Widenius7 Jun
        • Re: check table failing under OS/2Yuri Dario7 Jun
          • Re: check table failing under OS/2Michael Widenius11 Jun