List:Commits« Previous MessageNext Message »
From:Konstantin Osipov Date:August 20 2008 10:14pm
Subject:Re: bzr push into mysql-6.0 branch (sanja:2688 to 2689) Bug#38492
View as plain text  
* Sanja Byelkin <sanja@stripped> [08/08/20 23:39]:
> > Why do you have to add a new member? Isn't checking for DISABLED
> > sufficient?
> 
> It do not show that thread is termninating. At least description says:
> 
> /**
>   Mark the diagnostics area as 'DISABLED'.
> 
>   This is used in rare cases when the COM_ command at hand sends a response
>   in a custom format. One example is the query cache, another is
>   COM_STMT_PREPARE.
> */
> 
> and
> 
>     /** Set in case of a custom response, such as one from COM_STMT_PREPARE. */
>     DA_DISABLED
> 
> 
> > Need for a new member in a class that is very remotely related to
> > a storage engine does not seem to be justified by an assert in the
> > storage engine. 
> 
> When thread is closing MySQL Server unlock tables after "sending OK to
> client" (actually the flag means that output just closed, as I
> understand). It is the situation which is not possible in normal query
> processing and there is no way to detect it.

Committing an internal maria transaction in external_lock() is a
maria hack. It has backfired already in having to add
maria::implicit_commit() in a few places. Now some assert files. 
The diagnostics area is a brand new class that has been made
clean. Now it contains a member that tracks information that is
totally unrelated to the purpose of the class. 
Again, only because maria engine has a hack in it. 
Can you please find a better solution (preferably maria-specific)?

-- 
Thread
bzr push into mysql-6.0 branch (sanja:2688 to 2689) Bug#38492sanja20 Aug
  • Re: bzr push into mysql-6.0 branch (sanja:2688 to 2689) Bug#38492Konstantin Osipov20 Aug
    • Re: bzr push into mysql-6.0 branch (sanja:2688 to 2689) Bug#38492Sanja Byelkin20 Aug
      • Re: bzr push into mysql-6.0 branch (sanja:2688 to 2689) Bug#38492Konstantin Osipov20 Aug
        • Re: bzr push into mysql-6.0 branch (sanja:2688 to 2689) Bug#38492Konstantin Osipov21 Aug