• unknown's avatar
    Fixes for bugs (my_atomic and Maria log handler) observed on · 788b95bc
    unknown authored
    Solaris 10 Sparc 64bit.
    
    
    include/my_atomic.h:
      Prototypes in the non-inline (extern) case were wrong: they were
      missing "U_a" i.e. "volatile *". Caused a segfault in my_atomic-t
      on Solaris10 Sparc 64.
    storage/maria/ma_loghandler.c:
      Move "buffer" array up in the struct, to get it aligned on long-boundary
      so that page cache can use bmove512() (it was not aligned and bmove512()
      was used, causing SIGBUS on Solaris10 Sparc 64).
    storage/maria/unittest/ma_pagecache_consist.c:
      doing *(uint*)(charbuff)=something is not ok on sparc machines, we must
      use int4store/uint4korr. Fixes a SIGBUS on Solaris10 Sparc 64.
    788b95bc
ma_loghandler.c 275 KB