1. 19 Jun, 2006 1 commit
    • unknown's avatar
      Bug#19881: slave cores at close_temporary_tables under shutdown · 9534b8f1
      unknown authored
         The bug was found in rpl_stm_000001 testing. In essence the following happens
      
         SLAVE thread receives          what happens
         start
                                 init THD and its temp_table (tt0)
         stop
                                 storing tt0 pointer to rli->save...
         start
                                 restoring temp_tables - new pointer tt1
                                 executing regular binlog event DROP temp_table
                                 at the end of which tt1-refered list
                                 must be empty (slave_open_temp_tables == 0)
                                 but the pointer refers to tt0 location!
         shutdown
                                 end_slave calls cleaning of temp_tables and crashes.
      
         The reason of the crash is that tt1 values is not zero upon DROPing the single temp table.
         This is due to alg of removing links from temp_tables list which "adapted" 5.0 code
         but w/o accounting that thd->temporary_tables in slave thread in prone to freeing.
         Upon freeing there is no more original '0' value available to denote empty list.
      
         temporary_tables must not refer to any "external" location, one of which thd->temporary_tables represents (since belong to THD instance).
         The fix done in sql_base.cc for two functions, look at there for details.
      
      
      sql/sql_base.cc:
           refining prepend and remove link operation to thd->temporary_tables.
           The list turns to be "flat" double-linked, i.e "prev" accessor refers to an item instead of pointer to one as it was previously with "open_prev".
           On removal an invariant involving slave_open_temp_tables counter is checked.
           When it is zero thd->temporary_tables is set to zero explicitly. This can not be done, for what previous code hoped, because thd object changes when slave stop/start while
           slave's temporary_tables are maintained all the time, until reset/shutdow
      9534b8f1
  2. 02 Jun, 2006 2 commits
  3. 01 Jun, 2006 1 commit
    • unknown's avatar
      Applied innodb-5.1-ss594 snapshot. · 2dca2a1a
      unknown authored
       Fixed BUG#19542 "InnoDB doesn't increase the Handler_read_prev couter".
       Fixed BUG#19609 "Case sensitivity of innodb_data_file_path gives stupid error".
       Fixed BUG#19727 "InnoDB crashed server and crashed tables are ot recoverable".
       Also:
       * Remove remnants of the obsolete concept of memoryfixing tables and indexes.
       * Remove unused dict_table_LRU_trim().
       * Remove unused 'trx' parameter from dict_table_get_on_id_low(),
         dict_table_get(), dict_table_get_and_increment_handle_count().
       * Add a normal linked list implementation.
       * Add a work queue implementation.
       * Add 'level' parameter to mutex_create() and rw_lock_create().
         Remove mutex_set_level() and rw_lock_set_level().
       * Rename SYNC_LEVEL_NONE to SYNC_LEVEL_VARYING.
       * Add support for bound ids in InnoDB's parser.
       * Define UNIV_BTR_DEBUG for enabling consistency checks of
         FIL_PAGE_NEXT and FIL_PAGE_PREV when accessing sibling
         pages of B-tree indexes.
         btr_validate_level(): Check the validity of the doubly linked
         list formed by FIL_PAGE_NEXT and FIL_PAGE_PREV.
       * Adapt InnoDB to the new tablename to filename encoding in MySQL 5.1.
         ut_print_name(), ut_print_name1(): Add parameter 'table_id' for
         distinguishing names of tables from other identifiers.
         New: innobase_convert_from_table_id(), innobase_convert_from_id(),
              innobase_convert_from_filename(), innobase_get_charset.
         dict_accept(), dict_scan_id(), dict_scan_col(), dict_scan_table_name(),
         dict_skip_word(), dict_create_foreign_constraints_low(): Add
         parameter 'cs' so that isspace() can be replaced with my_isspace(),
         whose operation depends on the connection character set.
         dict_scan_id(): Convert identifier to UTF-8.
         dict_str_starts_with_keyword(): New extern function, to replace
         dict_accept() in row_search_for_mysql().
         mysql_get_identifier_quote_char(): Replaced with innobase_print_identifier().
         ha_innobase::create(): Remove the thd->convert_strin() call. Pass the
         statement to InnoDB in the connection character set and let InnoDB
         convert the identifier to UTF-8.
       * Add max_row_size to dict_table_t.
       * btr0cur.c
         btr_copy_externally_stored_field(): Only set the 'offset' variable
         when needed.
       * buf0buf.c
         buf_page_io_complete(): Write to the error log if the page number or
         the space id o the disk do not match those in memory. Also write to
         the error log if a page was read from the doublewrite buffer. The
         doublewrite buffer should be only read by the lower-level function
         fil_io() at database startup.
       * dict0dict.c
         dict_scan_table_name(): Remove fallback to differently encoded name
         when the table is not found. The encoding is handled at a higher level.
       * ha_innodb.cc
         Increment statistic counter in ha_innobase::index_prev() (bug 19542).
         Add innobase_convert_string wrapper function and a new file
         ha_prototypes.h.
         innobase_print_identifier(): Remove TODO comment before calling
         get_quote_char_for_identifier(). That function apparently assumes
         the identifier to be encoded in UTF-8.
       * ibuf0ibuf.c|h
         ibuf_count_get(), ibuf_counts[], ibuf_count_inited(): Define these
         only #ifdef UNIV_IBUF_DEBUG. Previously, when compiled without
         UNIV_IBUF_DEBUG, invoking ibuf_count_get() would crash InnoDB.
         The function is only being called #ifdef UNIV_IBUF_DEBUG.
       * innodb.result
         Adjust the results for changes in the foreign key error messages.
       * mem0mem.c|h
         New: mem_heap_dup(), mem_heap_printf(), mem_heap_cat().
       * os0file.c
         Check the page trailers also after writing to disk. This improves
         chances of diagnosing bug 18886.
         os_file_check_page_trailers(): New function for checking that the
         two copies of the LSN stamped on the page match.
         os_aio_simulated_handle(): Call os_file_check_page_trailers()
         before and after os_file_write().
       * row0mysql.c
         Move trx_commit_for_mysql(trx) calls before calls to
         row_mysql_unlock_data_dictionary(trx) (bug 19727).
       * row0sel.c
         row_fetch_print(): Handle SQL NULL values without crashing.
         row_sel_store_mysql_rec(): Remove useless call to rec_get_nth_field
         when handling an externally stored column.
         Fetch externally stored fields when using InnoDB's internal SQL
         parser.
         Optimize BLOB selects by using prebuilt->blob_heap directly instead
         of first reading BLOB data to a temporary heap and then copying it
         to prebuilt->blob_heap.
       * srv0srv.c
         srv_master_thread(): Remove unreachable code.
       * srv0start.c
         srv_parse_data_file_paths_and_sizes(): Accept lower-case 'm' and
         'g' as abbreviations of megabyte and gigabyte (bug 19609).
         srv_parse_megabytes(): New fuction.
       * ut0dbg.c|h
         Implement InnoDB assertions (ut_a and ut_error) with abort() when
         the code is compiled with GCC 3 or later on other platforms than
         Windows or Netware. Also disable the variable ut_dbg_stop_threads
         and the function ut_dbg_stop_thread() i this case, unless
         UNIV_SYC_DEBUG is defined. This should allow the compiler to
         generate more compact code for assertions.
       * ut0list.c|h
         Add ib_list_create_heap().
      
      
      mysql-test/r/innodb.result:
        Applied innodb-5.1-ss594 snapshot.
      mysql-test/t/innodb.test:
        Copy the comment from the beginning of the file
         to the end because MySQL developers continue
         adding test cases to this file.
      sql/ha_innodb.cc:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/CMakeLists.txt:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/Makefile.am:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/btr/btr0btr.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/btr/btr0cur.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/btr/btr0pcur.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/btr/btr0sea.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/buf/buf0buf.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/buf/buf0flu.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/data/data0type.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/dict/dict0crea.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/dict/dict0dict.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/dict/dict0load.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/dict/dict0mem.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/fil/fil0fil.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/ha/hash0hash.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/ibuf/ibuf0ibuf.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/data0type.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/dict0dict.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/dict0dict.ic:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/dict0mem.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/fil0fil.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/fsp0fsp.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/ibuf0ibuf.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/mem0mem.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/pars0pars.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/pars0sym.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/pars0types.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/rem0rec.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/row0purge.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/row0undo.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/srv0srv.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/sync0rw.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/sync0sync.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/univ.i:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/ut0dbg.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/ut0ut.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/lock/lock0lock.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/log/log0log.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/log/log0recv.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/mem/mem0dbg.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/mem/mem0mem.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/mem/mem0pool.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/os/os0file.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/os/os0thread.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/pars/lexyy.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/pars/pars0lex.l:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/pars/pars0pars.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/pars/pars0sym.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/row/row0ins.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/row/row0mysql.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/row/row0purge.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/row/row0row.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/row/row0sel.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/row/row0upd.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/srv/srv0srv.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/srv/srv0start.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/sync/sync0arr.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/sync/sync0rw.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/sync/sync0sync.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/thr/thr0loc.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/trx/trx0purge.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/trx/trx0rec.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/trx/trx0roll.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/trx/trx0rseg.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/trx/trx0sys.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/trx/trx0trx.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/ut/Makefile.am:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/ut/ut0dbg.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/ut/ut0ut.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/ha_prototypes.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/ut0list.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/ut0list.ic:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/include/ut0wqueue.h:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/ut/ut0list.c:
        Applied innodb-5.1-ss594 snapshot.
      storage/innobase/ut/ut0wqueue.c:
        Applied innodb-5.1-ss594 snapshot.
      2dca2a1a
  4. 31 May, 2006 1 commit
    • unknown's avatar
      Bug#19995 (Extreneous table maps generated for statements that do not generate rows): · e9b5cafa
      unknown authored
      Switched to writing out table maps for tables that are locked when
      the first row in a statement is seen.
      
      
      mysql-test/include/master-slave.inc:
        Moved code to reset master and slave into separate file.
      mysql-test/r/binlog_row_blackhole.result:
        Result change
      mysql-test/r/binlog_row_mix_innodb_myisam.result:
        Result change
      mysql-test/r/ndb_binlog_ignore_db.result:
        Result change
      mysql-test/r/rpl_ndb_charset.result:
        Result change
      mysql-test/r/rpl_row_basic_11bugs.result:
        Result change
      mysql-test/r/rpl_row_charset.result:
        Result change
      mysql-test/r/rpl_row_create_table.result:
        Result change
      mysql-test/t/rpl_row_basic_11bugs.test:
        Added test to check that no events are generated when no rows are changed.
      mysql-test/t/rpl_row_create_table.test:
        Master log position changed
      sql/handler.cc:
        Adding function write_locked_table_maps() that will write table maps for all
        tables locked for write.
        Using "table->in_use" instead of "current_thd" since tables are now locked
        when the function is called.
        Removing old code to write table map.
      sql/log_event.cc:
        Added assertion
      sql/sql_class.cc:
        Removing code to write "dummy termination event".
      sql/sql_class.h:
        Adding getter for binlog_table_maps.
      sql/sql_insert.cc:
        Setting thd->lock before calling write_record for the execution of
        CREATE-SELECT and INSERT-SELECT since they keep multiple locks in the
        air at the same time.
      mysql-test/include/master-slave-reset.inc:
        New BitKeeper file ``mysql-test/include/master-slave-reset.inc''
      e9b5cafa
  5. 17 May, 2006 5 commits
    • unknown's avatar
      After merge fixes · 39b6d186
      unknown authored
      39b6d186
    • unknown's avatar
      Merge mysql.com:/users/lthalmann/bkroot/mysql-5.1-new · 883b2229
      unknown authored
      into  mysql.com:/users/lthalmann/bk/mysql-5.1-new-rpl
      
      
      sql/sql_class.h:
        Auto merged
      sql/sql_table.cc:
        Auto merged
      mysql-test/r/innodb_mysql.result:
        Manual merge
      mysql-test/t/innodb_mysql.test:
        Manual merge
      sql/log.cc:
        Manual merge
      sql/set_var.cc:
        Manual merge
      sql/sql_base.cc:
        Manual merge
      sql/sql_class.cc:
        Manual merge
      sql/sql_parse.cc:
        Manual merge
      883b2229
    • unknown's avatar
      Merge mysql.com:/home/kgeorge/mysql/5.0/tmp_merge · c4e26cb0
      unknown authored
      into  mysql.com:/home/kgeorge/mysql/5.1/merge
      
      
      mysql-test/r/subselect.result:
        Auto merged
      mysql-test/r/view.result:
        Auto merged
      sql/item_subselect.cc:
        Auto merged
      c4e26cb0
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new · ea7cc4af
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      client/mysql.cc:
        Auto merged
      mysql-test/r/func_str.result:
        Auto merged
      mysql-test/r/rpl_temporary.result:
        Auto merged
      mysql-test/r/select.result:
        Auto merged
      mysql-test/t/rpl_temporary.test:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      ea7cc4af
    • unknown's avatar
      Bug #16875 Using stale MySQLD FRM files can cause restored cluster to fail · 1d83b61b
      unknown authored
      
      sql/ha_ndbcluster_binlog.cc:
        Bug #16875 Using stale MySQLD FRM files can cause restored cluster to fail
        - small correction of previous patch
      storage/ndb/src/ndbapi/DictCache.cpp:
        Bug #16875 Using stale MySQLD FRM files can cause restored cluster to fail
        - cache not released properly
      storage/ndb/tools/desc.cpp:
        Bug #16875 Using stale MySQLD FRM files can cause restored cluster to fail
        - added retry option so that ndb_desc can be used to wait for a table to be created
      1d83b61b
  6. 16 May, 2006 22 commits
    • unknown's avatar
      Merge zippy.(none):/home/cmiller/work/mysql/merge/tmp_merge · 4d861dad
      unknown authored
      into  zippy.(none):/home/cmiller/work/mysql/merge/mysql-5.1-new
      
      
      client/mysql.cc:
        Auto merged
      mysql-test/r/func_str.result:
        Auto merged
      mysql-test/r/rpl_temporary.result:
        Auto merged
      mysql-test/r/select.result:
        Auto merged
      mysql-test/t/rpl_temporary.test:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      4d861dad
    • unknown's avatar
      Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0 · 39ad30a4
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      storage/ndb/src/mgmapi/mgmapi.cpp:
        Auto merged
      storage/ndb/tools/waiter.cpp:
        Auto merged
      39ad30a4
    • unknown's avatar
      Merge poseidon.ndb.mysql.com:/home/tomas/mysql-4.1 · 6ee68c82
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
      
      
      ndb/src/mgmapi/mgmapi.cpp:
        Auto merged
      ndb/tools/waiter.cpp:
        Auto merged
      6ee68c82
    • unknown's avatar
      ndb: added some missing error codes to mgmapi · a2f26487
      unknown authored
          ndb: ndb_waiter disconnect/reconnect on get status error
      
      
      ndb/src/mgmapi/mgmapi.cpp:
        ndb: added some missing error codes to mgmapi
      ndb/tools/waiter.cpp:
        ndb: ndb_waiter disconnect/reconnect on get status error
      a2f26487
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 5fca6059
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      mysql-test/t/disabled.def:
        Auto merged
      5fca6059
    • unknown's avatar
      Bug #16875 Using stale MySQLD FRM files can cause restored cluster to fail · 597d84fa
      unknown authored
      - adoptions to handle binlog
      
      
      597d84fa
    • unknown's avatar
      Merge jmiller@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 6a278824
      unknown authored
      into  mysql.com:/home/ndbdev/jmiller/clones/mysql-5.1-new
      
      
      6a278824
    • unknown's avatar
      Updated to fix bug in AIX · fdedc069
      unknown authored
      
      mysql-test/extra/rpl_tests/rpl_log.test:
        Remove disable log per lars
      mysql-test/r/rpl_stm_log.result:
        New results file
      mysql-test/r/rpl_row_log.result:
        New results file
      mysql-test/r/rpl_row_log_innodb.result:
        New results file
      fdedc069
    • unknown's avatar
      rpl_log.test: · c3e4f43d
      unknown authored
        Fix for failure in aix52 failure during push build
      
      
      mysql-test/extra/rpl_tests/rpl_log.test:
        Fix for failure in aix52 failure during push build
      c3e4f43d
    • unknown's avatar
      disable events_logs_tests · 5be20e1c
      unknown authored
      5be20e1c
    • unknown's avatar
      information_schema.result: · 72232c69
      unknown authored
        corrected merge
      
      
      mysql-test/r/information_schema.result:
        corrected merge
      72232c69
    • unknown's avatar
      Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0 · 0f404366
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      storage/ndb/src/mgmsrv/MgmtSrvr.cpp:
        Auto merged
      storage/ndb/src/ndbapi/SignalSender.cpp:
        Auto merged
      support-files/mysql.spec.sh:
        Auto merged
      storage/ndb/src/mgmsrv/Services.cpp:
        manual merge
      0f404366
    • unknown's avatar
      Merge poseidon.ndb.mysql.com:/home/tomas/mysql-4.1 · f5afd233
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
      
      
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        Auto merged
      ndb/src/ndbapi/SignalSender.cpp:
        Auto merged
      support-files/mysql.spec.sh:
        Auto merged
      f5afd233
    • unknown's avatar
      Bug #18591 Repeated "show" and "all status" calls to ndb_mgm causes mgmd to crash · 976deafb
      unknown authored
      - not having lock can cause "block number list" to become corrupt => crash
      - also may result in 2 threads receiving same block no => possble cause of
      Bug #13987 Cluster: Loss of data nodes can cause high CPU usage from ndb_mgmd
      
      
      ndb/src/mgmsrv/MgmtSrvr.cpp:
        ndb: added missing lock of mutex
      976deafb
    • unknown's avatar
      corrected merge · 7cb13aec
      unknown authored
      7cb13aec
    • unknown's avatar
      Merge jonas@perch:src/mysql-4.1 · 9f46b3b5
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
      
      
      support-files/mysql.spec.sh:
        Auto merged
      9f46b3b5
    • unknown's avatar
      Bug#16837 (Missing #ifdef cause compile problem --without-row-based-replication): · 36815fa1
      unknown authored
      Added #ifdef's to make code work even when the system is built without
      row-based replication.
      
      
      mysql-test/r/create.result:
        Result change
      mysql-test/r/innodb_mysql.result:
        Result change
      mysql-test/t/create.test:
        Moving InnoDB specific test to innodb_mysql.test
      mysql-test/t/innodb_mysql.test:
        Moving InnoDB-specific test from create.test
      mysql-test/t/rpl_rbr_to_sbr.test:
        Test only sensible if we have row-based replication compiled in.
      mysql-test/t/rpl_row_basic_8partition.test:
        Test only sensible if we have row-based replication compiled in.
      sql/log.cc:
        Adding HAVE_ROW_BASED_REPLICATION guards on code to work without
        row-based replication.
      sql/set_var.cc:
        Adding HAVE_ROW_BASED_REPLICATION guards on code to work without
        row-based replication.
      sql/set_var.h:
        Adding HAVE_ROW_BASED_REPLICATION guards on code to work without
        row-based replication.
      sql/share/errmsg.txt:
        Adding HAVE_ROW_BASED_REPLICATION guards on code to work without
        row-based replication.
      sql/sql_base.cc:
        Adding HAVE_ROW_BASED_REPLICATION guards on code to work without
        row-based replication.
      sql/sql_class.cc:
        Adding HAVE_ROW_BASED_REPLICATION guards on code to work without
        row-based replication.
      sql/sql_class.h:
        Adding HAVE_ROW_BASED_REPLICATION guards on code to work without
        row-based replication.
      sql/sql_insert.cc:
        Adding HAVE_ROW_BASED_REPLICATION guards on code to work without
        row-based replication.
      sql/sql_parse.cc:
        Adding HAVE_ROW_BASED_REPLICATION guards on code to work without
        row-based replication.
      sql/sql_table.cc:
        Not running hooks
      36815fa1
    • unknown's avatar
      Merge jonas@perch:src/mysql-5.0 · c1a28709
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
      
      
      support-files/mysql.spec.sh:
        Auto merged
      c1a28709
    • unknown's avatar
      Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0 · 37b79d90
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      client/mysql.cc:
        Auto merged
      mysql-test/r/func_str.result:
        Auto merged
      mysql-test/r/rpl_temporary.result:
        Auto merged
      mysql-test/r/select.result:
        Auto merged
      mysql-test/t/rpl_temporary.test:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      storage/ndb/src/ndbapi/ClusterMgr.cpp:
        Auto merged
      storage/ndb/src/ndbapi/ClusterMgr.hpp:
        Auto merged
      storage/ndb/src/ndbapi/DictCache.hpp:
        Auto merged
      storage/ndb/src/ndbapi/TransporterFacade.hpp:
        Auto merged
      storage/ndb/src/ndbapi/ndb_cluster_connection.cpp:
        Auto merged
      storage/ndb/src/ndbapi/ndb_cluster_connection_impl.hpp:
        Auto merged
      mysql-test/r/information_schema.result:
        manual merge
      mysql-test/t/information_schema.test:
        manual merge
      sql/ha_ndbcluster.cc:
        manual merge
      storage/ndb/include/ndbapi/ndb_cluster_connection.hpp:
        manual merge
      storage/ndb/src/ndbapi/DictCache.cpp:
        manual merge
      37b79d90
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new · 17c95456
      unknown authored
      into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
      
      
      mysql-test/t/disabled.def:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      17c95456
    • unknown's avatar
      Merge mysql.com:/home/tmp_merge · c6b8d346
      unknown authored
      into  mysql.com:/home/mysql-5.1-18997e
      
      
      mysql-test/r/variables.result:
        Auto merged
      mysql-test/t/variables.test:
        Auto merged
      c6b8d346
    • unknown's avatar
      Bug#18997: DATE_ADD and DATE_SUB perform year2K autoconversion magic on 4-digit year value · b41b0fd6
      unknown authored
      if input year for date_add() / date_sub() with INTERVAL is low enough for
      calc_daynr() to possibly return incorrect results (calc_daynr() has no information
      on whether the year is low because it was a two-digit year ('77) or because it
      was a really low four-digit year (0077) and will indiscriminately try to turn the
      value into a four-digit year by adding 1900 or 2000 respectively), the functions
      will now throw NULL.
      
      
      include/my_time.h:
        new define YY_MAGIC_BELOW: if year is below this threshold, magic kicks in in
        calc_daynr(). the idea is to convert two-digit years to four-digit ones, adding
        1900 to values >= YY_PART_YEAR or adding 2000 otherwise.
        current value of YY_MAGIC_BELOW derived from original code in calc_daynr()
      mysql-test/r/func_time.result:
        test where 2 digit -> 4 digit year magic kicks in, and whether we throw NULL when
        it happens
      mysql-test/t/func_time.test:
        test where 2 digit -> 4 digit year magic kicks in, and whether we throw NULL when
        it happens
      sql-common/my_time.c:
        use new const YY_MAGIC_BELOW, apply 2-digit -> 4-digit magic only to years
        below this threshold.
      sql/item_timefunc.cc:
        throw NULL when year in date_add() / date_sub() would be affected by
        2 digit -> 4 digit magic.
      b41b0fd6
  7. 15 May, 2006 8 commits