1. 06 Apr, 2004 1 commit
    • unknown's avatar
      This is a fix for a bug in 3.23 -> 4.0 replication: Exec_master_log_pos is always · 66bade03
      unknown authored
      too big by 6 bytes. So I add code to substract 6 bytes if the master is 3.23.
      This is not perfect (because it won't work if the slave I/O thread has not
      noticed yet that the master is 3.23), but as long as the slave I/O thread
      starts Exec_master_log_pos will be ok.
      It must be merged to 4.1 but not to 5.0 (or it can be, because of #if MYSQL_VERSION_ID),
      because 5.0 already works if the master is 3.23 (and in a more natural way:
      in 5.0 we store the end_log_pos in the binlog and relay log).
      I had to move functions from slave.h to slave.cc to satisfy gcc.
      
      
      sql/log_event.cc:
        make the event's length 6 bytes shorter if the master is 3.23
      sql/slave.cc:
        Moving several st_relay_log_info methods out of the declaration of the struct,
        because gcc complained that 'mi' was not declared.
        Substracting 6 bytes from the event's length in inc_pos() if the master is 3.23.
      sql/slave.h:
        moving several methods out of the declaration of st_relay_log_info.
        Removing 'inline', let's have the compiler decide.
      66bade03
  2. 20 Mar, 2004 3 commits
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 · 262d5311
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      262d5311
    • unknown's avatar
      The automatic DROP TEMPORARY TABLE is now DROP TEMPORARY TABLE IF EXISTS, · 96f2820f
      unknown authored
      this is better in this case:
      - imagine user1 has created a temp table
      - imagine user2 does FLUSH TABLES WITH READ LOCK, then takes a backup,
      then RESET MASTER then UNLOCK TABLES, like mysqldump --first-slave
      - then in the binlog you will finally have the DROP TEMPORARY TABLE,
      but not the CREATE TEMPORARY TABLE, so when you later restore with
      mysqlbinlog|mysql, mysql will complain that table does not exist.
      Replication was already protected of this (it processes DROP TEMPORARY
      TABLE as if there was a IF EXISTS), now I add it directly to the query
      for mysqlbinlog|mysql to work.
      
      
      mysql-test/r/drop_temp_table.result:
        result update (query changed)
      96f2820f
    • unknown's avatar
      btr0btr.c: · f060e444
      unknown authored
        Correct previous bk commit comment about page splits: actually, in versions < 4.0.19 space utilization is very poor if 1500 - 8000 byte rows are inserted in the order of the primary key
      
      
      innobase/btr/btr0btr.c:
        Correct previous bk commit comment about page splits: actually, in versions < 4.0.19 space utilization is very poor if 1500 - 8000 byte rows are inserted in the order of the primary key
      f060e444
  3. 19 Mar, 2004 11 commits
    • unknown's avatar
      btr0btr.c: · 85137d37
      unknown authored
        Improve space utilization if we have 3 kB - 8 kB rows to insert in the order of the primary key
      btr0cur.c:
        Fix bug: The row count and key cardinality estimate was grossly too small if each clustered index page only contained one record
      
      
      innobase/btr/btr0cur.c:
        Fix bug: The row count and key cardinality estimate was grossly too small if each clustered index page only contained one record
      innobase/btr/btr0btr.c:
        Improve space utilization if we have 3 kB - 8 kB rows to insert in the order of the primary key
      85137d37
    • unknown's avatar
      Merge lgrimmer@build.mysql.com:/home/bk/mysql-4.0 · e0595df6
      unknown authored
      into mysql.com:/space/my/mysql-4.0
      
      e0595df6
    • unknown's avatar
      Merge mysql.com:/space/my/mysql-4.0 · 6291646c
      unknown authored
      into mysql.com:/space/my/mysql-4.0-build
      
      6291646c
    • unknown's avatar
      - Do-pkg: PGK and DMG names now include the full arch name (e.g. · 11b5115f
      unknown authored
         "-apple-darwin7.3.0-powerpc") - this is needed as we now will provide
         Mac OS X 10.2.x and Mac OS X 10.3.x PGKs (and it's more in line of
         how we name all other packages)
      
      
      Build-tools/Do-pkg:
         - PGK and DMG names now include the full arch name (e.g. 
           "-apple-darwin7.3.0-powerpc") - this is needed as we now will provide
           Mac OS X 10.2.x and Mac OS X 10.3.x PGKs (and it's more in line of
           how we name all other packages)
      11b5115f
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.0/ · b436a551
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.0
      
      b436a551
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.0/ · 137935db
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.0
      
      137935db
    • unknown's avatar
      Portability fixes · a63bd6dd
      unknown authored
      Fixed some wrong column specifications in mysql_fix_privilege_tables
      
      
      mysql-test/mysql-test-run.sh:
        Portability fix
      mysql-test/r/func_math.result:
        portability fix
      mysql-test/r/rpl_error_ignored_table.result:
        portability fix
      mysql-test/t/func_math.test:
        portability fix
      mysql-test/t/rpl_error_ignored_table.test:
        portability fix
      scripts/mysql_fix_privilege_tables.sh:
        func.name was not generated correctly
      scripts/mysql_fix_privilege_tables.sql:
        Fixed some wrong column specifications
      a63bd6dd
    • unknown's avatar
      typo in mysql_install_db fixed · c5f2beea
      unknown authored
      
      scripts/mysql_install_db.sh:
        typo fixed
        (thanks Alex Dupre <ale@FreeBSD.org> for noticing this!)
      c5f2beea
    • unknown's avatar
      Removed \r · 02dbb9ad
      unknown authored
      02dbb9ad
    • unknown's avatar
      Portability fixes · 5f00bc3c
      unknown authored
      Removed \r from new tests
      Fixes to get new sustem_mysql_db... tests to work
      
      
      client/mysqltest.c:
        More debug information
      innobase/que/que0que.c:
        Fixed wrong usage of __attribute
      mysql-test/mysql-test-run.sh:
        Portability fix; Added CLIENT_BINDIR
      mysql-test/t/system_mysql_db_fix.test:
        Removed \r
      mysql-test/t/system_mysql_db_refs.test:
        Removed \r
      scripts/mysql_fix_privilege_tables.sh:
        Don't set root password from first option
        Added --bindir option
      5f00bc3c
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · bb0e83f9
      unknown authored
      into mysql.com:/home/my/mysql-4.0
      
      bb0e83f9
  4. 17 Mar, 2004 6 commits
    • unknown's avatar
      WL #1510 "Implement support for "commercial" binaries on handshake", · 1b8f0058
      unknown authored
      client library:
      - implemented 'check_license' function
      
      
      include/errmsg.h:
        WL #1510: new error code
      include/mysql_version.h.in:
        WL #1510: fallback define for LICENSE
      libmysql/errmsg.c:
        WL #1510: error message to print in case when client and server license 
        mismatch.
      libmysql/libmysql.c:
        WL#1510: implementation of 'check_license' function
      sql/set_var.cc:
        removed unused variable 'license'
      1b8f0058
    • unknown's avatar
      Merge vvagin@bk-internal.mysql.com:/home/bk/mysql-4.0 · e4e4166e
      unknown authored
      into eagle.mysql.r18.ru:/home/vva/work/BUG_2874/mysql-4.0
      
      e4e4166e
    • unknown's avatar
      fixed structure error from last merge for bug #2874 · 68d3db4b
      unknown authored
      
      BitKeeper/deleted/.del-system_mysql_db.test~f5a7ec0e9440c043:
        Delete: mysql-test/t/reserv/system_mysql_db.test
      BitKeeper/deleted/.del-system_mysql_db_fix.test~180b2fd4873a9c49:
        Delete: mysql-test/t/reserv/system_mysql_db_fix.test
      BitKeeper/deleted/.del-system_mysql_db_fix-master.opt~2897a9ebb17f930e:
        Delete: mysql-test/t/reserv/system_mysql_db_fix-master.opt
      BitKeeper/deleted/.del-system_mysql_db_refs.test~e5bffdb55190a23c:
        Delete: mysql-test/t/reserv/system_mysql_db_refs.test
      68d3db4b
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0 · 49121afc
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.0
      
      49121afc
    • unknown's avatar
      Fix for BUG#2922 "Crash (signal11) after "load data from master"" · 0103d946
      unknown authored
      with a testcase.
      We needed to init_master_info before we flush_master_info
      in LOAD DATA FROM MASTER.
      
      
      mysql-test/r/rpl000009.result:
        result update
      mysql-test/t/rpl000009.test:
        adding a test for RESET SLAVE + LOAD DATA FROM MASTER
      sql/repl_failsafe.cc:
        LOAD DATA FROM MASTER udpates the master info in the slave,
        so needs to ensure that it is properly inited first
        (otherwise, after RESET SLAVE, we are flush_io_cache()ing
        an uninitialized IO_CACHE master.info).
        Note that it master info is already inited (active_mi->inited==1),
        init_master_info() will do nothing, which is what we want.
      0103d946
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 10c4e9ad
      unknown authored
      into mysql.com:/home/my/mysql-4.0
      
      10c4e9ad
  5. 16 Mar, 2004 14 commits
  6. 13 Mar, 2004 4 commits
    • unknown's avatar
      Merge marko@build.mysql.com:/home/bk/mysql-4.0 · 4f27d6eb
      unknown authored
      into hundin.mysql.fi:/home/marko/l/mysql-4.0
      
      4f27d6eb
    • unknown's avatar
      InnoDB: Replace ut_a(0) with ut_error · 80a5f391
      unknown authored
      
      innobase/btr/btr0btr.c:
        Replace ut_a(0) with ut_error
      innobase/buf/buf0flu.c:
        Replace ut_a(0) with ut_error
      innobase/buf/buf0lru.c:
        Replace ut_a(0) with ut_error
      innobase/data/data0data.c:
        Replace ut_a(0) with ut_error
      innobase/dict/dict0crea.c:
        Replace ut_a(0) with ut_error
      innobase/dict/dict0dict.c:
        Replace ut_a(0) with ut_error
      innobase/dict/dict0load.c:
        Replace ut_a(0) with ut_error
      innobase/fil/fil0fil.c:
        Replace ut_a(0) with ut_error
      innobase/fsp/fsp0fsp.c:
        Replace ut_a(0) with ut_error
      innobase/ibuf/ibuf0ibuf.c:
        Replace ut_a(0) with ut_error
      innobase/include/buf0buf.ic:
        Replace ut_a(0) with ut_error
      innobase/include/data0type.ic:
        Replace ut_a(0) with ut_error
      innobase/include/mtr0log.ic:
        Replace ut_a(0) with ut_error
      innobase/include/trx0rseg.ic:
        Replace ut_a(0) with ut_error
      innobase/lock/lock0lock.c:
        Replace ut_a(0) with ut_error
      innobase/log/log0log.c:
        Replace ut_a(0) with ut_error
      innobase/log/log0recv.c:
        Replace ut_a(0) with ut_error
      innobase/mem/mem0pool.c:
        Replace ut_a(0) with ut_error
      innobase/mtr/mtr0log.c:
        Replace ut_a(0) with ut_error
      innobase/os/os0file.c:
        Replace ut_a(0) with ut_error
      innobase/page/page0cur.c:
        Replace ut_a(0) with ut_error
      innobase/page/page0page.c:
        Replace ut_a(0) with ut_error
      innobase/pars/lexyy.c:
        Replace ut_a(0) with ut_error
      innobase/que/que0que.c:
        Replace ut_a(0) with ut_error
      innobase/rem/rem0cmp.c:
        Replace ut_a(0) with ut_error
      innobase/rem/rem0rec.c:
        Replace ut_a(0) with ut_error
      innobase/row/row0ins.c:
        Replace ut_a(0) with ut_error
      innobase/row/row0mysql.c:
        Replace ut_a(0) with ut_error
      innobase/row/row0purge.c:
        Replace ut_a(0) with ut_error
      innobase/row/row0row.c:
        Replace ut_a(0) with ut_error
      innobase/row/row0sel.c:
        Replace ut_a(0) with ut_error
      innobase/row/row0undo.c:
        Replace ut_a(0) with ut_error
      innobase/srv/srv0srv.c:
        Replace ut_a(0) with ut_error
      innobase/sync/sync0arr.c:
        Replace ut_a(0) with ut_error
      innobase/trx/trx0purge.c:
        Replace ut_a(0) with ut_error
      innobase/trx/trx0trx.c:
        Replace ut_a(0) with ut_error
      innobase/trx/trx0undo.c:
        Replace ut_a(0) with ut_error
      80a5f391
    • unknown's avatar
      after merge fixes. · 2bc08cbe
      unknown authored
      2bc08cbe
    • unknown's avatar
      multi_update.result: · fe544498
      unknown authored
        Fix for a bug in the result
      multi_update.test:
        Fix for a bug in the test
      
      
      mysql-test/t/multi_update.test:
        Fix for a bug in the test
      mysql-test/r/multi_update.result:
        Fix for a bug in the result
      fe544498
  7. 12 Mar, 2004 1 commit