[Commits] Rev 4153: MDEV-5963: InnoDB: Assertion failure in file row0sel.cc line 2503 ... in file:///home/psergey/dev2/10.0-cp/

Jan Lindström jplindst at mariadb.org
Fri Apr 18 19:46:05 EEST 2014


Sergey,
> === modified file 'sql/opt_range.cc'
> --- a/sql/opt_range.cc	2014-04-01 16:59:51 +0000
> +++ b/sql/opt_range.cc	2014-04-18 10:07:54 +0000
> @@ -2181,7 +2181,7 @@ int QUICK_ROR_INTERSECT_SELECT::init_ror
>       quick->record= head->record[0];
>     }
>   
> -  if (need_to_fetch_row && head->file->ha_rnd_init_with_error(1))
> +  if (need_to_fetch_row && head->file->ha_rnd_init_with_error(false))

You had so nice and informative reason why this has to be like this, why 
not add big fat comment here ?
>     {
>       DBUG_PRINT("error", ("ROR index_merge rnd_init call failed"));
>       DBUG_RETURN(1);
> @@ -2363,8 +2363,13 @@ int QUICK_ROR_UNION_SELECT::reset()
>       quick->save_last_pos();
>       queue_insert(&queue, (uchar*)quick);
>     }
> -
> -  if ((error= head->file->ha_rnd_init(1)))
> +  /* Prepare for ha_rnd_pos calls. */
> +  if (head->file->inited && (error= head->file->ha_rnd_end()))
> +  {
> +    DBUG_PRINT("error", ("ROR index_merge rnd_end call failed"));
> +    DBUG_RETURN(error);
> +  }
> +  if ((error= head->file->ha_rnd_init(false)))
>     {
>       DBUG_PRINT("error", ("ROR index_merge rnd_init call failed"));
>       DBUG_RETURN(error);
>
> _______________________________________________
>

R:
-- 

--

Jan Lindström, Principal Engineer
SkySQL - The MariaDB Company

MariaDB | MaxScale | skype: jan_p_lindstrom

www.skysql.com <http://www.skysql.com/>

Twitter <http://twitter.com/skysql> Blog <http://www.skysql.com/blog/> 
Facebook <http://www.facebook.com/skysql> LinkedIn 
<http://www.linkedin.com/company/1214250> Google+ 
<https://plus.google.com/117544963211695643458/posts>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.askmonty.org/pipermail/commits/attachments/20140418/94c53bf0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skysql-RGB-100-Trimmed.png
Type: image/png
Size: 4942 bytes
Desc: not available
URL: <http://lists.askmonty.org/pipermail/commits/attachments/20140418/94c53bf0/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter.png
Type: image/png
Size: 3120 bytes
Desc: not available
URL: <http://lists.askmonty.org/pipermail/commits/attachments/20140418/94c53bf0/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blog.png
Type: image/png
Size: 3187 bytes
Desc: not available
URL: <http://lists.askmonty.org/pipermail/commits/attachments/20140418/94c53bf0/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook.png
Type: image/png
Size: 2955 bytes
Desc: not available
URL: <http://lists.askmonty.org/pipermail/commits/attachments/20140418/94c53bf0/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin.png
Type: image/png
Size: 3016 bytes
Desc: not available
URL: <http://lists.askmonty.org/pipermail/commits/attachments/20140418/94c53bf0/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: google.png
Type: image/png
Size: 3032 bytes
Desc: not available
URL: <http://lists.askmonty.org/pipermail/commits/attachments/20140418/94c53bf0/attachment-0011.png>


More information about the commits mailing list