List:Commits« Previous MessageNext Message »
From:Staale Smedseng Date:May 19 2009 8:20pm
Subject:Re: bzr commit into mysql-5.1-bugteam branch (staale.smedseng:2884)
Bug#43560
View as plain text  
> > @@ -2526,31 +2527,6 @@ my_bool mysql_reconnect(MYSQL *mysql)
> >     tmp_mysql.reconnect= 1;
> >     tmp_mysql.free_me= mysql->free_me;
> >
> > -  /*
> > -    For each stmt in mysql->stmts, move it to tmp_mysql if it is
> > -    in state MYSQL_STMT_INIT_DONE, otherwise close it.
> > -  */
> > -  {
> > -    LIST *element= mysql->stmts;
> > -    for (; element; element= element->next)
> > -    {
> > -      MYSQL_STMT *stmt= (MYSQL_STMT *) element->data;
> > -      if (stmt->state != MYSQL_STMT_INIT_DONE)
> > -      {
> > -        stmt->mysql= 0;
> > -        stmt->last_errno= CR_SERVER_LOST;
> > -        strmov(stmt->last_error, ER(CR_SERVER_LOST));
> > -        strmov(stmt->sqlstate, unknown_sqlstate);
> > -      }
> > -      else
> > -      {
> > -        tmp_mysql.stmts= list_add(tmp_mysql.stmts,&stmt->list);
> > -      }
> > -      /* No need to call list_delete for statement here */
> > -    }
> > -    mysql->stmts= NULL;
> > -  }
> > -
> 
> It seems we won't be moving MYSQL_STMT_INIT_DONE statements to the new 
> handle... is it intentional?

Indeed not. Code re-added in latest patch.

Staale

Thread
bzr commit into mysql-5.1-bugteam branch (staale.smedseng:2884) Bug#43560Staale Smedseng15 May
  • Re: bzr commit into mysql-5.1-bugteam branch (staale.smedseng:2884)Bug#43560Davi Arnaut19 May
    • Re: bzr commit into mysql-5.1-bugteam branch (staale.smedseng:2884)Bug#43560Staale Smedseng19 May