Commit ca4d512a authored by Sergei Golubchik's avatar Sergei Golubchik

Bug#40416 Maria: Memory allocated at trnman.c:129 was underrun

fix a bug that was introduced in one of the infamous "cleanups"

storage/maria/trnman.c:
  restore the correct precedence
parent bfea373b
......@@ -222,7 +222,7 @@ static TrID new_trid()
static uint get_short_trid(TRN *trn)
{
int i= (int) ((global_trid_generator + (intptr)trn) * 312089 %
SHORT_TRID_MAX + 1);
SHORT_TRID_MAX) + 1;
uint res=0;
for ( ; !res ; i= 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment