Browse Source

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
pull/374/head
Sergei Golubchik 17 years ago
parent
commit
ca4d512aa4
  1. 2
      storage/maria/trnman.c

2
storage/maria/trnman.c

@ -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)

Loading…
Cancel
Save