Hi, Oleksandr! On Nov 24, Oleksandr Byelkin wrote: > > Thank you , the patch is OK to push. I a bit dislike this mix Lex/lex > thing, but we can not do something about it, logic is clear - one use > is Lex several use cases then lex=Lex.
Not really. Lex is YYTHD->lex. And many years ago YYTHD was current_thd. This LEX *lex=Lex; mantra was used to avoid calling current_thd too often. Now thd is passed as an argument to yyparse, so Lex no longer uses current_thd and there's no need to "optimize" it into a local variable. Old code still does it, though. Regards, Sergei Chief Architect MariaDB and [email protected] _______________________________________________ Mailing list: https://launchpad.net/~maria-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~maria-developers More help : https://help.launchpad.net/ListHelp

