• unknown's avatar
    Fixed compiler warnings · fdfb5148
    unknown authored
    Fixed bug in ma_dbug.c that gave valgrind warning (only relevant when using --debug)
    Fixed bug in blob logging (Fixes valgrind warning)
    maria_getint() -> maria_data_on_page()
    
    
    mysys/safemalloc.c:
      Added debug function to print out where a piece of memory was allocated
    sql/opt_range.cc:
      Remove DBUG_PRINT of unitailized memory
    storage/maria/ma_blockrec.c:
      Fixed bug in blob logging
    storage/maria/ma_check.c:
      Fixed compiler warning
    storage/maria/ma_dbug.c:
      Added missed end++; Caused usage of unitialized memory for nullable keys that was not NULL
    storage/maria/ma_delete.c:
      maria_getint() -> maria_data_on_page()
    storage/maria/ma_init.c:
      Added header file to get rid of warning
    storage/maria/ma_key.c:
      More debugging
    storage/maria/ma_loghandler.c:
      Removed some wrong ';' to get rid of compiler errors when compiling without debugging
      Indentation fixes
      Removed not needed 'break's
      Fixed some compiler warnings
      Added code to detect logging of unitialized memory
    storage/maria/ma_page.c:
      maria_getint() -> maria_data_on_page()
      Clear rest of index page before writing when used with valgrind
      (Fixes warning of writing pages with unitialized data)
    storage/maria/ma_range.c:
      maria_getint() -> maria_data_on_page()
    storage/maria/ma_rt_index.c:
      maria_getint() -> maria_data_on_page()
    storage/maria/ma_rt_index.h:
      maria_getint() -> maria_data_on_page()
    storage/maria/ma_rt_key.c:
      maria_getint() -> maria_data_on_page()
    storage/maria/ma_rt_split.c:
      maria_getint() -> maria_data_on_page()
    storage/maria/ma_search.c:
      maria_getint() -> maria_data_on_page()
    storage/maria/ma_test1.c:
      Fixed compiler warning
    storage/maria/ma_write.c:
      maria_getint() -> maria_data_on_page()
    storage/maria/maria_chk.c:
      maria_getint() -> maria_data_on_page()
    storage/maria/maria_def.h:
      maria_getint() -> maria_data_on_page()
    storage/maria/unittest/ma_pagecache_consist.c:
      Fixed compiler warning
    storage/maria/unittest/ma_pagecache_single.c:
      Fixed compiler warning
    storage/maria/unittest/ma_test_loghandler-t.c:
      Fixed compiler warning
    storage/maria/unittest/ma_test_loghandler_multigroup-t.c:
      Fixed compiler warning
    storage/maria/unittest/ma_test_loghandler_multithread-t.c:
      Fixed compiler warning
    storage/maria/unittest/ma_test_loghandler_pagecache-t.c:
      Fixed compiler warning
    storage/myisam/mi_dbug.c:
      Added missed end++; Caused usage of unitialized memory for nullable keys that was not NULL
    fdfb5148
ma_test_loghandler_pagecache-t.c 4.17 KB