1. 27 Jul, 2012 2 commits
    • Igor Babaev's avatar
      Added missing declaration of statistics_lock. · 26947f5a
      Igor Babaev authored
      Replaced bzero with memset.
      Added missing --source include/have_debug_sync.inc into stat_tables.test.
      26947f5a
    • Igor Babaev's avatar
      Performed re-factoring and re-structuring of the code for mwl#248: · 8c499274
      Igor Babaev authored
        - Moved the definitions of the classes to store data from persistent
          statistical tables into statistics.h, leaving in other internal 
          data structures only references to the corresponding objects.
        - Defined class Column_statistics_collected derived from the class
          Column_statistics. This is a helper class to collect statistics
          on columns.
        - Moved references to read statistics to TABLE SHARE, leaving the
          the reference to the collected statistics in TABLE.
       - Added a new clone method for the class Field allowing to clone
          fields attached to table shares. It was was used to create 
          fields for min/max values in the memory of the table share.
      A lso:
        - Added procedures to allocate memory for statistical data in
          the table share memory and in table memory.
      Also: 
        - Added a test case demonstrating how ANALYZE could work in parallel
          to collect statistics on different indexes of the same table.
        - Added a test two demonstrate how two connections working 
          simultaneously could allocate memory for statistical data in the 
          table share memory.  
         
      8c499274
  2. 11 Jul, 2012 1 commit
  3. 10 Jul, 2012 1 commit
    • Igor Babaev's avatar
      Added procedures to delete records by keys from statistical tables. · 47fae7f0
      Igor Babaev authored
      Now when a table is dropped the statistics on the table is removed 
      from the statistical tables. If the table is altered in such a way
      that a column is dropped or the type of the column is changed then
      statistics on the column is removed from the table column_stat.
      It also triggers removal of the statistics on the indexes who use
      this column as its component.
      
      Added procedures that changes the names of the tables or columns
      in the statistical tables for. 
      These procedures are used when tables/columns are renamed.
      
      Also partly re-factored the code that introduced the persistent
      statistical tables.
      
      Added test cases into statistics.test to cover the new code.
      47fae7f0
  4. 26 Jun, 2012 2 commits
  5. 25 Jun, 2012 1 commit
  6. 24 Jun, 2012 1 commit
  7. 23 Jun, 2012 3 commits
  8. 22 Jun, 2012 2 commits
  9. 21 Jun, 2012 7 commits
  10. 20 Jun, 2012 7 commits
  11. 19 Jun, 2012 2 commits
    • unknown's avatar
      Merged the fix for bug lp:944706, mdev-193 · 0b93b444
      unknown authored
      0b93b444
    • Igor Babaev's avatar
      Fixed bug mdev-354. · 0c69f220
      Igor Babaev authored
      Virtual columns of ENUM and SET data types were not supported properly
      in the original patch that introduced virtual columns into MariaDB 5.2.
      The problem was that for any  virtual column the patch used the 
      interval_id field of the definition of the column in the frm file as
      a reference to the virtual column expression.
      The fix stores the optional interval_id of the virtual column in the
      extended header of the virtual column expression. 
      0c69f220
  12. 18 Jun, 2012 5 commits
  13. 17 Jun, 2012 1 commit
  14. 16 Jun, 2012 2 commits
  15. 15 Jun, 2012 3 commits