Konstantin Osipov wrote:
> * Davi Arnaut <Davi.Arnaut@stripped> [08/09/13 04:48]:
>> 2683 Davi Arnaut 2008-09-12
>> Bug#34306: Can't make copy of log tables when server binary log is enabled
>>
>
> Please add a test case that uses prepared statements or stored
> procedures or triggers and changes the log type between two executions,
> or between prepare and execute, or between the time a table is
> opened and the trigger is fired, or between the time a procedure
> is loaded and is executed.
> This test case doesn't have to use log tables -- I would like to
> see that the lock is adapted on each execution, depending on the
> status of the binary log, rather than once
> in the parser, like it was before.
There is no way to reliable test it as the lock type was depending on
the using_update_log variable, which only gets set at startup. The only
way to test it would be to start the server with the binary log disabled
(--skip-log-bin), but there is no way to open the binary log after the
server has been started.
> What was the reason to make TL_READ_DEFAULT the first read lock?
> Perhaps worth a comment.
OK, I'll add.
-- Davi