mariadb/storage/maria
Michael Widenius ff3da0f963 Change TABLE->alias to String for less memory reallocation
Changed some String.ptr() -> String.c_ptr() for String that are not guaranteed to end with \0
Removed some c_ptr() usage from parameters to functions that takes ptr & length
Use preallocate buffers to avoid calling malloc() for most operations. 


sql/event_db_repository.cc:
  alias is now a String
sql/event_scheduler.cc:
  c_ptr -> c_ptr_safe() to avoid warnings from valgrind.
sql/events.cc:
  c_ptr -> c_ptr_safe() to avoid warnings from valgrind.
  c_ptr -> ptr() as function takes ptr & length
sql/field.cc:
  alias is now a String
sql/field.h:
  alias is now a String
sql/ha_partition.cc:
  alias is now a String
sql/handler.cc:
  alias is now a String
  ptr() -> c_ptr() as string is not guaranteed to be \0 terminated
sql/item.cc:
  Store error parameter in separarte buffer to ensure correct error message
sql/item_func.cc:
  ptr() -> c_ptr_safe() as string is not guaranteed to be \0 terminated
sql/item_sum.h:
  Use my_strtod() instead of my_atof() to not have to make string \0 terminated
sql/lock.cc:
  alias is now a String
sql/log.cc:
  c_ptr() -> ptr() as function takes ptr & length
sql/log_event.cc:
  c_ptr_quick() -> ptr() as we only want to get the pointer to String buffer
sql/opt_range.cc:
  ptr() -> c_ptr() as string is not guaranteed to be \0 terminated
sql/opt_table_elimination.cc:
  alias is now a String
sql/set_var.cc:
  ptr() -> c_ptr() as string is not guaranteed to be \0 terminated
  c_ptr() -> c_ptr_safe() to avoid warnings from valgrind.
  c_ptr() -> ptr() as function takes ptr & length
  Simplify some code.
sql/sp.cc:
  c_ptr() -> ptr() as function takes ptr & length
sql/sp_rcontext.cc:
  alias is now a String
sql/sql_base.cc:
  alias is now a String.
  Here we win a realloc() for most alias usage.
sql/sql_class.cc:
  Use size descriptor for printf() to avoid accessing bytes outside of buffer
sql/sql_insert.cc:
  Change allocation of TABLE as it's now contains a String
  _ptr() -> ptr() as function takes ptr & length
sql/sql_load.cc:
  Use preallocate buffers to avoid calling malloc() for most operations.
sql/sql_parse.cc:
  Use c_ptr_safe() to ensure string is \0 terminated.
sql/sql_plugin.cc:
  c_ptr_quick() -> ptr() as function takes ptr & length
sql/sql_select.cc:
  alias is now a String
sql/sql_show.cc:
  alias is now a String
sql/sql_string.h:
  Added move() function to change who owns the string (owner does the free)
sql/sql_table.cc:
  alias is now a String
  c_ptr() -> c_ptr_safe() to avoid warnings from valgrind.
sql/sql_test.cc:
  c_ptr() -> c_ptr_safe() to avoid warnings from valgrind.
  alias is now a String
sql/sql_trigger.cc:
  c_ptr() -> c_ptr_safe() to avoid warnings from valgrind.
  Use field->init() to setup pointers to alias.
sql/sql_update.cc:
  alias is now a String
sql/sql_view.cc:
  ptr() -> c_ptr_safe() as string is not guaranteed to be \0 terminated
sql/sql_yacc.yy:
  r() -> c_ptr() as string is not guaranteed to be \0 terminated
sql/table.cc:
  alias is now a String
sql/table.h:
  alias is now a String
storage/federatedx/ha_federatedx.cc:
  Remove extra 1 byte alloc that is automaticly done by strmake()
  Ensure that error message ends with \0
storage/maria/ha_maria.cc:
  alias is now a String
storage/myisam/ha_myisam.cc:
  alias is now a String
2011-02-28 12:48:50 +02:00
..
unittest Rename control file and log files from maria_xxx to aria_xxx when upgrading from MariaDB 5.1 2010-09-27 21:48:10 +03:00
CMakeLists.txt fixes for make dist, 32-bit OS, and other buildbot failures 2010-09-16 09:04:59 +02:00
compat_aliases.cc provide maria* aliases for aria* command-line options, 2010-09-14 23:06:54 +02:00
compat_aliases.h provide maria* aliases for aria* command-line options, 2010-09-14 23:06:54 +02:00
file_formats.txt Fixed compiler warnings 2008-02-22 17:22:56 +02:00
ft_maria.c Fixed some compiler warnings and errors in test suite found by buildbot 2010-01-27 23:53:08 +02:00
ha_maria.cc Change TABLE->alias to String for less memory reallocation 2011-02-28 12:48:50 +02:00
ha_maria.h provide maria* aliases for aria* command-line options, 2010-09-14 23:06:54 +02:00
lockman.c Remove compiler warnings (Including some warnings from -Wstrict-aliasing) 2009-11-30 01:08:56 +02:00
lockman.h
ma_bitmap.c Fixed compiler & valgrind warnings from my previous push. 2010-11-03 14:14:02 +02:00
ma_blockrec.c When scanning pages, stop when you are at 'data_file_length'. 2010-11-04 16:57:30 +02:00
ma_blockrec.h Fixed compiler & valgrind warnings from my previous push. 2010-11-03 14:14:02 +02:00
ma_cache.c
ma_changed.c
ma_check.c Use less memory on stack in sql_parse.cc and in repair/check for MyISAM & Aria 2010-10-12 20:40:46 +03:00
ma_check_standalone.h rename maria to aria 2010-09-12 18:40:01 +02:00
ma_checkpoint.c Automerge with 5.1 2010-08-25 01:44:50 +03:00
ma_checkpoint.h rename maria to aria 2010-09-12 18:40:01 +02:00
ma_checksum.c Injecting more "const" declarations into code which does not change 2008-04-03 15:40:25 +02:00
ma_close.c When one does a drop table, the indexes are not flushed to disk before drop anymore (with MyISAM/Maria) 2010-02-10 21:06:24 +02:00
ma_commit.c post-review fixes 2009-01-15 22:27:36 +01:00
ma_commit.h
ma_control_file.c rename maria to aria 2010-09-12 18:40:01 +02:00
ma_control_file.h rename maria to aria 2010-09-12 18:40:01 +02:00
ma_create.c rename maria to aria 2010-09-12 18:40:01 +02:00
ma_dbug.c Automatic merge with 5.1 2010-11-04 16:53:10 +02:00
ma_delete.c Fixes for bugs found by running test case for LP#608369 "Page: 1 Found wrong page type 0' on CHECK TABLE EXTENDED" 2010-10-13 18:15:43 +03:00
ma_delete_all.c merge 2009-02-06 00:38:30 +02:00
ma_delete_table.c Fix for Bug#40311 Assert in MARIA_RECORD_POS during pushbuild 2 test: 2008-12-22 02:17:37 +02:00
ma_dynrec.c Code cleanup: 2009-01-09 06:23:25 +02:00
ma_extra.c When one does a drop table, the indexes are not flushed to disk before drop anymore (with MyISAM/Maria) 2010-02-10 21:06:24 +02:00
ma_ft_boolean_search.c Applied Antony T Curtis patch for declaring many CHARSET objects as const 2010-01-06 21:20:16 +02:00
ma_ft_eval.c
ma_ft_eval.h
ma_ft_nlq_search.c Fixes after comments from last push: 2009-11-30 15:36:06 +02:00
ma_ft_parser.c Applied Antony T Curtis patch for declaring many CHARSET objects as const 2010-01-06 21:20:16 +02:00
ma_ft_stem.c
ma_ft_test1.c
ma_ft_test1.h
ma_ft_update.c Merge with mysql-maria 2009-01-30 23:55:42 +02:00
ma_ftdefs.h Fixes after comments from last push: 2009-11-30 15:36:06 +02:00
ma_fulltext.h Merge with mysql-maria 2009-01-30 23:55:42 +02:00
ma_info.c Changed all file names in maria to LEX_STRING and removed some calls to strlen() 2008-08-25 14:49:47 +03:00
ma_init.c Move maria_upgrade() out of maria_init() as in standalone programs maria_data_root is not set. 2010-09-28 01:18:06 +03:00
ma_key.c WL#3262 add mutex lock order checking to safemutex (also called safe_mutex_deadlock_detector) 2008-12-03 00:02:52 +02:00
ma_key_recover.c Fixes for bugs found by running test case for LP#608369 "Page: 1 Found wrong page type 0' on CHECK TABLE EXTENDED" 2010-10-13 18:15:43 +03:00
ma_key_recover.h Fixes some bug in Aria recovery: 2010-10-07 12:51:34 +03:00
ma_keycache.c Changed all file names in maria to LEX_STRING and removed some calls to strlen() 2008-08-25 14:49:47 +03:00
ma_locking.c Fix for: LP #634955: Assert in _ma_update_at_original_place() 2010-11-02 17:22:57 +02:00
ma_loghandler.c rename maria to aria 2010-09-12 18:40:01 +02:00
ma_loghandler.h Merge 2010-10-14 15:46:20 -07:00
ma_loghandler_lsn.h Fix for BUG#37876 "Importing Maria table from other server via binary copy does not work": 2008-07-09 11:02:27 +02:00
ma_open.c Fix for: LP #634955: Assert in _ma_update_at_original_place() 2010-11-02 17:22:57 +02:00
ma_packrec.c We are now using Valgrind rather than purify, and have for quite some time. 2009-05-06 14:03:24 +02:00
ma_page.c Fixed bug that 'maria_read_log -a' didn't set max_trid when reparing tables. 2010-09-06 02:25:44 +03:00
ma_pagecache.c Don't flush pinned pages in checkpoint (fix for my last push) 2010-06-16 00:39:28 +03:00
ma_pagecache.h _ma_bitmap_unpin_all() needs to unpin not-locked pages which were pinned by other threads 2008-10-14 17:18:14 +02:00
ma_pagecaches.c copyright and license info 2008-03-04 12:58:21 +01:00
ma_pagecrc.c We are now using Valgrind rather than purify, and have for quite some time. 2009-05-06 14:03:24 +02:00
ma_panic.c
ma_preload.c Merge with base MySQL-5.1-maria 2009-01-12 13:12:00 +02:00
ma_range.c Added MARIA_PAGE structure to keep all information about a maria key page. 2008-09-01 20:31:40 +03:00
ma_recovery.c merge with 5.1 2010-09-16 09:58:57 +02:00
ma_recovery.h Remove not used files 2010-08-05 18:56:31 +03:00
ma_recovery_util.c Fix for LP#602604: RQG: ma_blockrec.c:6187: _ma_apply_redo_insert_row_head_or_tail: Assertion `0' failed on Maria engine recovery 2010-07-30 10:45:27 +03:00
ma_recovery_util.h
ma_rename.c Fix for Bug#40311 Assert in MARIA_RECORD_POS during pushbuild 2 test: 2008-12-22 02:17:37 +02:00
ma_rfirst.c
ma_rkey.c Added count of my_sync calls (to SHOW STATUS) 2010-03-09 21:22:24 +02:00
ma_rlast.c
ma_rnext.c Added versioning of Maria index 2008-06-26 08:18:28 +03:00
ma_rnext_same.c Code cleanup: 2009-01-09 06:23:25 +02:00
ma_rprev.c Added versioning of Maria index 2008-06-26 08:18:28 +03:00
ma_rrnd.c
ma_rsame.c Added versioning of Maria index 2008-06-26 08:18:28 +03:00
ma_rsamepos.c Added versioning of Maria index 2008-06-26 08:18:28 +03:00
ma_rt_index.c Added --sync-sys=0 option for mysqld to skip sync() calls for faster testing 2010-08-09 20:05:42 +03:00
ma_rt_index.h Added MARIA_PAGE structure to keep all information about a maria key page. 2008-09-01 20:31:40 +03:00
ma_rt_key.c Fixes some bug in Aria recovery: 2010-10-07 12:51:34 +03:00
ma_rt_key.h Added MARIA_PAGE structure to keep all information about a maria key page. 2008-09-01 20:31:40 +03:00
ma_rt_mbr.c Added MARIA_PAGE structure to keep all information about a maria key page. 2008-09-01 20:31:40 +03:00
ma_rt_mbr.h Added MARIA_PAGE structure to keep all information about a maria key page. 2008-09-01 20:31:40 +03:00
ma_rt_split.c Fixed bug that 'maria_read_log -a' didn't set max_trid when reparing tables. 2010-09-06 02:25:44 +03:00
ma_rt_test.c Merge; No notable changes 2008-06-26 12:32:22 +03:00
ma_scan.c Fixed problems with ma_test2 and mi_test2 on high-byte-first system 2008-02-21 02:45:02 +02:00
ma_search.c Merge 2010-10-14 15:46:20 -07:00
ma_servicethread.c Separated service thread framework to be used for update/delete purge (WL#3067) and group commit (WL#3080). 2009-01-12 21:27:02 +02:00
ma_servicethread.h Separated service thread framework to be used for update/delete purge (WL#3067) and group commit (WL#3080). 2009-01-12 21:27:02 +02:00
ma_sort.c rename maria to aria 2010-09-12 18:40:01 +02:00
ma_sp_defs.h Added versioning of Maria index 2008-06-26 08:18:28 +03:00
ma_sp_key.c Fixes for build errors under Windows and compiler warning under Linux 2008-06-26 17:10:11 +02:00
ma_sp_test.c
ma_state.c Fix for: LP #634955: Assert in _ma_update_at_original_place() 2010-11-02 17:22:57 +02:00
ma_state.h Fix for: LP #634955: Assert in _ma_update_at_original_place() 2010-11-02 17:22:57 +02:00
ma_static.c Added verbose mode to recovery 2010-08-18 10:52:57 +03:00
ma_statrec.c Code cleanup: 2009-01-09 06:23:25 +02:00
ma_test1.c WL#3262 add mutex lock order checking to safemutex (also called safe_mutex_deadlock_detector) 2008-12-03 00:02:52 +02:00
ma_test2.c Fixed valgrind errors and compiler warnings discovered by buildbot 2010-08-20 10:29:26 +03:00
ma_test3.c Removed compiler warnings 2010-01-06 23:27:53 +02:00
ma_test_all.res
ma_test_all.sh
ma_test_big.sh
ma_test_force_start.pl rename maria to aria 2010-09-12 18:40:01 +02:00
ma_test_recovery Added versioning of row data 2008-04-10 05:26:36 +03:00
ma_unique.c Fixed bug that 'maria_read_log -a' didn't set max_trid when reparing tables. 2010-09-06 02:25:44 +03:00
ma_update.c Added ha_maria::is_changed() (needed for Query cache) 2008-11-01 01:14:58 +02:00
ma_write.c Fix for: LP #634955: Assert in _ma_update_at_original_place() 2010-11-02 17:22:57 +02:00
Makefile.am provide maria* aliases for aria* command-line options, 2010-09-14 23:06:54 +02:00
maria_chk.c merge with 5.1 2010-09-16 09:58:57 +02:00
maria_def.h When scanning pages, stop when you are at 'data_file_length'. 2010-11-04 16:57:30 +02:00
maria_ftdump.c rename maria to aria 2010-09-12 18:40:01 +02:00
maria_pack.c rename maria to aria 2010-09-12 18:40:01 +02:00
maria_read_log.c rename maria to aria 2010-09-12 18:40:01 +02:00
maria_rename.sh
plug.in rename maria to aria 2010-09-12 18:40:01 +02:00
tablockman.c
tablockman.h
test_pack
trnman.c Fix for LP#634943 "marked as crashed", "zerofilling" and "wrong data in bitmap" when recovering Aria tables 2010-09-10 23:27:26 +03:00
trnman.h merged 2009-01-16 17:18:17 +01:00
trnman_public.h merged 2009-01-16 17:18:17 +01:00