• unknown's avatar
    Now ftparser does not need to bother about memory management - · 199ee891
    unknown authored
    it can tell MySQL to make a copy of everything (bug#17123)
    
    
    include/mysql/plugin.h:
      Now ftparser does not need to bother about memory management -
      it can tell MySQL to make a copy of everything (bug#17123)
      MYSQL_FTFLAGS_NEED_COPY flag
    storage/myisam/ft_boolean_search.c:
      param->flags
    storage/myisam/ft_nlq_search.c:
      param->flags. ft_parse takes a mem_root as an argument
    storage/myisam/ft_parser.c:
      ftparser takes a memroot as an argument. words are copied there, if necessary.
      memroot is reset for every parsing and free'd at the end of the statement.
    storage/myisam/ft_update.c:
      ftparser takes a memroot as an argument. words are copied there, if necessary.
      memroot is reset for every parsing and free'd at the end of the statement.
    storage/myisam/ftdefs.h:
      ftparser takes a memroot as an argument. words are copied there, if necessary.
      memroot is reset for every parsing and free'd at the end of the statement.
    storage/myisam/mi_check.c:
      ftparser takes a memroot as an argument. words are copied there, if necessary
    storage/myisam/myisamdef.h:
      memroot for ftparser in MI_INFO and MI_SORT_PARAM
    storage/myisam/sort.c:
      free ftparser memroot
    199ee891
ft_boolean_search.c 27.7 KB