← Back to team overview

maria-developers team mailing list archive

Rev 2731: MWL#36: Add a mysqlbinlog option to change the used database in file:///home/psergey/dev/maria-5.2/

 

At file:///home/psergey/dev/maria-5.2/

------------------------------------------------------------
revno: 2731
revision-id: psergey@xxxxxxxxxxxx-20091104224158-nk2s2luvlqwa02bl
parent: monty@xxxxxxxxxxxx-20091028221427-frz7593084t6osmc
parent: alexi1952@xxxxxxxxx-20091027134247-2efxqunerou2hykv
committer: Sergey Petrunya <psergey@xxxxxxxxxxxx>
branch nick: maria-5.2
timestamp: Thu 2009-11-05 01:41:58 +0300
message:
  MWL#36: Add a mysqlbinlog option to change the used database
  - Merge to MariaDB 5.2
added:
  mysql-test/std_data/loaddata7.dat loaddata7.dat-20091016142045-b5fpf9tpydkmwy0i-1
  mysql-test/suite/binlog/r/binlog_row_mysqlbinlog_options.result binlog_row_mysqlbinl-20091016142045-b5fpf9tpydkmwy0i-2
  mysql-test/suite/binlog/t/binlog_row_mysqlbinlog_options.test binlog_row_mysqlbinl-20091016142045-b5fpf9tpydkmwy0i-3
modified:
  client/Makefile.am             sp1f-makefile.am-19700101030959-zpaig4zjwqhmsob3ypilmrcrkq7pu6gf
  client/client_priv.h           sp1f-client_priv.h-20010912205330-fzvv7eg77ywdut64ojoihwu3lhbabphc
  client/mysqlbinlog.cc          sp1f-mysqlbinlog.cc-19700101030959-b3vgyo47ljent5mhbyj6ik33bi4bukad
  client/sql_string.cc           sp1f-sql_string.cc-19700101030959-72h4johdz5mgcc6z2xceguohasr3pkrx
  client/sql_string.h            sp1f-sql_string.h-19700101030959-oscd4vjvtuwjf22oosfpfmvc2f3km2dx
  sql/log_event.cc               sp1f-log_event.cc-19700101030959-msmqlflsngxosswid2hpzxly5vfqdddc
  sql/log_event.h                sp1f-log_event.h-19700101030959-clq6ett55tcqbpys2i4cpfrdccq7j4om
  sql/mysql_priv.h               sp1f-mysql_priv.h-19700101030959-4fl65tqpop5zfgxaxkqotu2fa2ree5ci
  sql/mysqld.cc                  sp1f-mysqld.cc-19700101030959-zpswdvekpvixxzxf7gdtofzel7nywtfj
  sql/rpl_filter.cc              sp1f-table_filter.cc-20050308201116-4anzb26smj76r56ihkpxzbtnzlzatr2k
  sql/rpl_filter.h               sp1f-table_filter.h-20050308201116-ynbrrxlqijcoxfwgnipwjhgfw7vhdytw
  sql/sql_string.cc              sp1f-sql_string.cc-19700101030959-yg6a37s5vnlpgxanuou6h2vbdmwbdxdx
  sql/sql_string.h               sp1f-sql_string.h-19700101030959-nogsoxwv222e4vm4toic7cabeb4swajz
  sql/thr_malloc.cc              sp1f-thr_malloc.cc-19700101030959-sg5hfbdswjtjtdjtmvppuc2eedch3p3s
    ------------------------------------------------------------
    revno: 2643.51.10
    revision-id: alexi1952@xxxxxxxxx-20091027134247-2efxqunerou2hykv
    parent: psergey@xxxxxxxxxxxx-20091024214858-5whjzap4t0qvv41j
    committer: Alexander Ivanov <alexi1952@xxxxxxxxx>
    branch nick: maria-wl36
    timestamp: Tue 2009-10-27 16:42:47 +0300
    message:
      MWL#36: Add a mysqlbinlog option to change the used database.
      Post-review changes:
      * modify mysqlbinlog's --help message for --rewrite-db option.
      * add test for mysqlbinlog with --read-from-remote-server option.
    modified:
      client/mysqlbinlog.cc          sp1f-mysqlbinlog.cc-19700101030959-b3vgyo47ljent5mhbyj6ik33bi4bukad
      mysql-test/suite/binlog/r/binlog_row_mysqlbinlog_options.result binlog_row_mysqlbinl-20091016142045-b5fpf9tpydkmwy0i-2
      mysql-test/suite/binlog/t/binlog_row_mysqlbinlog_options.test binlog_row_mysqlbinl-20091016142045-b5fpf9tpydkmwy0i-3
    ------------------------------------------------------------
    revno: 2643.51.9
    revision-id: psergey@xxxxxxxxxxxx-20091024214858-5whjzap4t0qvv41j
    parent: psergey@xxxxxxxxxxxx-20091024194339-tauuslposi16t7uv
    committer: Sergey Petrunya <psergey@xxxxxxxxxxxx>
    branch nick: maria-5.1-wl36-r3
    timestamp: Sun 2009-10-25 01:48:58 +0400
    message:
      MWL#36: Add a mysqlbinlog option to change the used database
      - Apply Alexander Ivanov's fix to testsuite
    modified:
      mysql-test/suite/binlog/r/binlog_row_mysqlbinlog_options.result binlog_row_mysqlbinl-20091016142045-b5fpf9tpydkmwy0i-2
      mysql-test/suite/binlog/t/binlog_row_mysqlbinlog_options.test binlog_row_mysqlbinl-20091016142045-b5fpf9tpydkmwy0i-3
    ------------------------------------------------------------
    revno: 2643.51.8
    revision-id: psergey@xxxxxxxxxxxx-20091024194339-tauuslposi16t7uv
    parent: alexi1952@xxxxxxxxx-20091017061257-v142dpem8x7rrh35
    committer: Sergey Petrunya <psergey@xxxxxxxxxxxx>
    branch nick: maria-5.1-wl36-r3
    timestamp: Sat 2009-10-24 23:43:39 +0400
    message:
      MWL#36: Add a mysqlbinlog option to change the used database
      - Review fixes
    modified:
      client/Makefile.am             sp1f-makefile.am-19700101030959-zpaig4zjwqhmsob3ypilmrcrkq7pu6gf
      client/mysqlbinlog.cc          sp1f-mysqlbinlog.cc-19700101030959-b3vgyo47ljent5mhbyj6ik33bi4bukad
      client/sql_string.h            sp1f-sql_string.h-19700101030959-oscd4vjvtuwjf22oosfpfmvc2f3km2dx
      sql/log_event.cc               sp1f-log_event.cc-19700101030959-msmqlflsngxosswid2hpzxly5vfqdddc
      sql/log_event.h                sp1f-log_event.h-19700101030959-clq6ett55tcqbpys2i4cpfrdccq7j4om
      sql/mysqld.cc                  sp1f-mysqld.cc-19700101030959-zpswdvekpvixxzxf7gdtofzel7nywtfj
      sql/rpl_filter.cc              sp1f-table_filter.cc-20050308201116-4anzb26smj76r56ihkpxzbtnzlzatr2k
      sql/rpl_filter.h               sp1f-table_filter.h-20050308201116-ynbrrxlqijcoxfwgnipwjhgfw7vhdytw
      sql/sql_string.cc              sp1f-sql_string.cc-19700101030959-yg6a37s5vnlpgxanuou6h2vbdmwbdxdx
      sql/sql_string.h               sp1f-sql_string.h-19700101030959-nogsoxwv222e4vm4toic7cabeb4swajz
    ------------------------------------------------------------
    revno: 2643.51.7
    revision-id: alexi1952@xxxxxxxxx-20091017061257-v142dpem8x7rrh35
    parent: alexi1952@xxxxxxxxx-20091016150824-qs0h8jnskz26y56h
    committer: Alexander Ivanov <alexi1952@xxxxxxxxx>
    branch nick: maria-wl36
    timestamp: Sat 2009-10-17 10:12:57 +0400
    message:
      After merge
    modified:
      sql/sql_string.cc              sp1f-sql_string.cc-19700101030959-yg6a37s5vnlpgxanuou6h2vbdmwbdxdx
    ------------------------------------------------------------
    revno: 2643.51.6
    revision-id: alexi1952@xxxxxxxxx-20091016150824-qs0h8jnskz26y56h
    parent: alexi1952@xxxxxxxxx-20091016142256-ylt3xpab2qhgs8hw
    parent: monty@xxxxxxxxxxxx-20091014080956-d6xr2v3glk4v53sg
    committer: Alexander Ivanov <alexi1952@xxxxxxxxx>
    branch nick: maria-wl36
    timestamp: Fri 2009-10-16 19:08:24 +0400
    message:
      MWL#36: Add a mysqlbinlog option to change the used database.
      Merge from trunk.
    added:
      BUILD/compile-pentium-debug-max-no-qc compilepentiumdebugm-20090923065542-7a3x9z3bgfxn1rac-1
      mysql-test/r/mysqltest_ps.result mysqltest_ps.result-20091009074042-4ptmxutygql3xe53-1
      mysql-test/suite/maria/t/maria_showlog_error-master.opt maria_showlog_errorm-20091013124404-b9hjoj2o0dtvoi0v-1
      mysql-test/t/mysqltest_ps.test mysqltest_ps.test-20091009074042-4ptmxutygql3xe53-2
      win/configure-mariadb.sh       configuremariadb.sh-20091008190333-1t6vp376gcf6dk1x-1
      win/make_mariadb_win_dist      make_mariadb_win_dis-20091011101226-jxt5k56vsnmdwseb-1
    modified:
      BUILD/SETUP.sh                 sp1f-setup.sh-20001218212418-itvzddls4bsqffggcsjklbawdmaxdhde
      Makefile.am                    sp1f-makefile.am-19700101030959-jbbpiygwpgybyqknlavdxxupbrjonu7h
      client/mysqltest.cc            sp1f-mysqltest.c-20001010065317-ix4zw26srlev7yugcz455ux22zwyynyf
      configure.in                   sp1f-configure.in-19700101030959-mgdpoxtnh2ewmvusvfpkreuhwvffkcjw
      mysql-test/include/maria_empty_logs.inc sp1f-maria_empty_logs.inc-20071113161227-ndxpipzwp33lgtq7hd2ztaenz7talfmb
      mysql-test/include/read_many_rows.inc sp1f-innodbbig.test-20050407162409-2ijhhplhkad7ibufmxakqxeassbgr3u7
      mysql-test/include/wait_for_status_var.inc wait_for_status_var.-20090403213228-jhk85sfwqs7rva2t-1
      mysql-test/lib/My/ConfigFactory.pm sp1f-configfactory.pm-20071212171904-umibosyolpj2kzgk32rt5p6pl6vztmaq
      mysql-test/lib/mtr_cases.pm    sp1f-mtr_cases.pl-20050203205008-rrteoawyobvgq6u7zeyce4tmuu334ayg
      mysql-test/mysql-test-run.pl   sp1f-mysqltestrun.pl-20041230152716-xjnn5ndv4rr4by6ijmj5a4ysubxc7qh3
      mysql-test/r/read_many_rows_innodb.result sp1f-innodbbig.result-20050407162408-3byrsilm6v4jwdzg6hckv4gvderpmwrz
      mysql-test/suite/funcs_1/datadict/processlist_priv.inc sp1f-processlist_priv.inc-20070815194641-da67ub26jjvt6hw6xorwk7twwxj6wofg
      mysql-test/suite/funcs_1/datadict/processlist_val.inc sp1f-processlist_val.inc-20070815194641-3hfsmyh3jr2gjhvgms52iydpkamdbnoz
      mysql-test/suite/funcs_1/r/is_columns_is.result sp1f-is_columns_is.result-20080307163304-7bd6seaxklddmff6f3bb54inlyw6unpw
      mysql-test/suite/funcs_1/r/is_tables_is.result sp1f-is_tables_is.result-20080307163304-6xl5vbegso6wet3dzoehxb645vntxpig
      mysql-test/suite/funcs_1/r/is_tables_myisam.result sp1f-is_tables_myisam.res-20080307163304-e4a7cotuvanfvlzekx7hbwyhb5f2gk73
      mysql-test/suite/funcs_1/r/processlist_priv_no_prot.result sp1f-a_processlist_priv_n-20070815194641-dlvb2zym4djihvxmbsmib5bvpgytiuoe
      mysql-test/suite/funcs_1/r/processlist_val_no_prot.result sp1f-a_processlist_val_no-20070815194641-puz2vi6caqirb4nqzumushorqyuniraq
      mysql-test/suite/funcs_1/t/is_columns_is.test sp1f-is_columns_is.test-20080307163303-projhl5aviz6wflvnkcoukmxy6nra32g
      mysql-test/suite/maria/t/maria-recover.test mariarecover.test-20080602174033-rnr5wg8wn2bqarwk-1
      mysql-test/suite/parts/t/partition_alter1_1_2_innodb.test sp1f-partition_alter1_1_2-20080513231047-73rswweuq6oir4o2u6svrq3sihowexyn
      mysql-test/suite/parts/t/partition_alter1_1_2_myisam.test sp1f-partition_alter1_1_2-20080513231047-bc3pgqtbhdmv3e6rhbbdit2nvwvry6dw
      mysql-test/suite/parts/t/partition_alter1_1_innodb.test sp1f-partition_alter1_1_i-20080513231047-3ir4v6ppntt2eadlbomo4hbwfe5sauay
      mysql-test/suite/parts/t/partition_alter1_1_myisam.test sp1f-partition_alter1_1_m-20080513231047-rgvbdni4nugq5zraq7vneewnlbdqdz5r
      mysql-test/suite/parts/t/partition_alter1_2_innodb.test sp1f-partition_alter1_2_i-20080513231047-g6yx4e6tufcbky2wq463xgngz66cuqnu
      mysql-test/suite/parts/t/partition_alter1_2_myisam.test sp1f-partition_alter1_2_m-20080513231047-rij737fg6r5v64noymxivu75d5ngreqx
      mysql-test/suite/parts/t/partition_alter2_1_innodb.test sp1f-partition_alter2_inn-20070206122238-btax2l7djjymz6hlnkmuvwdt2nbqbxed
      mysql-test/suite/parts/t/partition_alter2_1_maria.test partition_alter2_1_m-20081121141924-3a12t18v91jq9g3g-1
      mysql-test/suite/parts/t/partition_alter2_1_myisam.test sp1f-partition_alter2_myi-20070206122238-yz7u7rjz5kz6n4vjdn7s5t7kxnzkkamf
      mysql-test/suite/parts/t/partition_alter2_2_innodb.test partition_alter2_2_i-20080908140941-884mge0s10lxgki2-3
      mysql-test/suite/parts/t/partition_alter2_2_maria.test partition_alter2_2_m-20081121141924-3a12t18v91jq9g3g-2
      mysql-test/suite/parts/t/partition_alter2_2_myisam.test partition_alter2_2_m-20080908140941-884mge0s10lxgki2-4
      mysql-test/suite/parts/t/partition_alter3_innodb.test sp1f-partition_alter3_inn-20070206122238-i52aup4vehr4p7jhfzhvlhwb2m6txoca
      mysql-test/suite/parts/t/partition_alter3_myisam.test sp1f-partition_alter3_myi-20070206122238-pfd4wa7cixsoxjigbqeqlsamagdt64ff
      mysql-test/suite/parts/t/partition_alter4_innodb.test sp1f-partition_alter4_inn-20070206122238-wzdnxx4co5gutrm6mnbees2dkz7bwsii
      mysql-test/suite/parts/t/partition_alter4_myisam.test sp1f-partition_alter4_myi-20070206122238-54kwwhogzz65yuo74mwin2d5fe5rki2n
      mysql-test/suite/parts/t/partition_basic_innodb.test sp1f-partition_basic_inno-20070206122238-6o7mtftdh7bsyo3up576z5ng45jkkhed
      mysql-test/suite/parts/t/partition_basic_myisam.test sp1f-partition_basic_myis-20070206122238-w5z7ioipltrbhl6y4yt63ueuuf3zrv46
      mysql-test/suite/parts/t/partition_basic_symlink_myisam.test sp1f-partition_basic_syml-20080206141352-td2zc3ehbfsoon3e6nfwhq5lrpe7s3mt
      mysql-test/suite/parts/t/partition_engine_innodb.test sp1f-partition_engine_inn-20070206122238-qfeexchp6zfhwipmml3m64jx334k7vj3
      mysql-test/suite/parts/t/partition_engine_myisam.test sp1f-partition_engine_myi-20070206122238-zx4jgy2vyr2u3svn7ktw3xzvl72wyck6
      mysql-test/suite/parts/t/partition_recover_myisam.test partition_repair_myi-20080609121315-mjya2e9ekn7bunzm-2
      mysql-test/suite/parts/t/partition_special_innodb.test sp1f-partition_special_in-20070206122239-ric3u7bjjmi6nzboyfzdbfiepzkx6i7k
      mysql-test/suite/parts/t/partition_syntax_innodb.test sp1f-partition_syntax_inn-20070206122240-nflwppyghr62grue7rxvideeq3pt5lpb
      mysql-test/suite/parts/t/partition_syntax_myisam.test sp1f-partition_syntax_myi-20070206122240-gvuy3nivxgp6biwnztskv3gvsji3fzl3
      mysql-test/suite/pbxt/r/connect.result connect.result-20090402100035-4ilk9i91sh65vjcb-21
      mysql-test/suite/pbxt/r/mysqlslap.result mysqlslap.result-20090402100035-4ilk9i91sh65vjcb-102
      mysql-test/suite/pbxt/r/ps_11bugs.result ps_11bugs.result-20090402100035-4ilk9i91sh65vjcb-129
      mysql-test/suite/pbxt/r/select.result select.result-20090402100035-4ilk9i91sh65vjcb-139
      mysql-test/suite/pbxt/r/union.result union.result-20090402100035-4ilk9i91sh65vjcb-166
      mysql-test/suite/pbxt/t/connect.test connect.test-20090402100035-4ilk9i91sh65vjcb-188
      mysql-test/t/variables-big.test sp1f-variablesbig.test-20070412220324-cmxsynsvdpjgbtnnanbt6pyrzz3xrnwo
      scripts/make_win_bin_dist      sp1f-make_win_bin_dist-20060901123056-xnusgszvkfrrcxkqidb7zszax2ezpyto
      sql/mysql_priv.h               sp1f-mysql_priv.h-19700101030959-4fl65tqpop5zfgxaxkqotu2fa2ree5ci
      sql/mysqld.cc                  sp1f-mysqld.cc-19700101030959-zpswdvekpvixxzxf7gdtofzel7nywtfj
      sql/sql_string.cc              sp1f-sql_string.cc-19700101030959-yg6a37s5vnlpgxanuou6h2vbdmwbdxdx
      storage/maria/ha_maria.cc      sp1f-ha_maria.cc-20060411134405-dmngb4v5x5fxlxhff527ud3etiutxuxk
      storage/maria/ma_state.c       sp1f-ma_state.c-20080529153331-ttwxiq5ksyib6sdrdsdl2lnbbm362lwh
      storage/maria/maria_def.h      sp1f-maria_def.h-20060411134454-urdx4joxwcwzxbmltpzejn53y2rgjs44
      storage/myisam/ha_myisam.cc    sp1f-ha_myisam.cc-19700101030959-7xzssylbn7zfz3nupnsw43wws6xlltsu
      storage/myisam/mi_locking.c    sp1f-mi_locking.c-19700101030959-27f7n7juexzv4qrhkiwcoylzh4yfibbl
      storage/myisam/myisamdef.h     sp1f-myisamdef.h-19700101030959-fzrxvpmzhzqfn5w2clasmcw7af4kanoa
      storage/pbxt/src/Makefile.am   makefile.am-20090326121724-x683v32twzr3fi0y-13
      win/Makefile.am                sp1f-makefile.am-20060324215048-nfows6kg5gqazyzq4qztdyzddvzjmrfm
      win/configure.js               sp1f-configure.js-20060131135210-xvfnytwaxztc3ytr6pmdtutht4i26rdu
    ------------------------------------------------------------
    revno: 2643.51.5
    revision-id: alexi1952@xxxxxxxxx-20091016142256-ylt3xpab2qhgs8hw
    parent: alexi1952@xxxxxxxxx-20091016140412-90gld44oqp6bv9cs
    committer: Alexander Ivanov <alexi1952@xxxxxxxxx>
    branch nick: maria-wl36
    timestamp: Fri 2009-10-16 18:22:56 +0400
    message:
      MWL#36: Add a mysqlbinlog option to change the used database.
      Add test-suite.
    added:
      mysql-test/std_data/loaddata7.dat loaddata7.dat-20091016142045-b5fpf9tpydkmwy0i-1
      mysql-test/suite/binlog/r/binlog_row_mysqlbinlog_options.result binlog_row_mysqlbinl-20091016142045-b5fpf9tpydkmwy0i-2
      mysql-test/suite/binlog/t/binlog_row_mysqlbinlog_options.test binlog_row_mysqlbinl-20091016142045-b5fpf9tpydkmwy0i-3
    ------------------------------------------------------------
    revno: 2643.51.4
    revision-id: alexi1952@xxxxxxxxx-20091016140412-90gld44oqp6bv9cs
    parent: alexi1952@xxxxxxxxx-20091016132813-yingxxg1m0lcb61p
    committer: Alexander Ivanov <alexi1952@xxxxxxxxx>
    branch nick: maria-wl36
    timestamp: Fri 2009-10-16 18:04:12 +0400
    message:
      MWL#36: Add a mysqlbinlog option to change the used database.
      Add --rewrite-db option to mysqlbinlog.
    modified:
      client/client_priv.h           sp1f-client_priv.h-20010912205330-fzvv7eg77ywdut64ojoihwu3lhbabphc
      client/mysqlbinlog.cc          sp1f-mysqlbinlog.cc-19700101030959-b3vgyo47ljent5mhbyj6ik33bi4bukad
    ------------------------------------------------------------
    revno: 2643.51.3
    revision-id: alexi1952@xxxxxxxxx-20091016132813-yingxxg1m0lcb61p
    parent: alexi1952@xxxxxxxxx-20091016115816-tj67uvdvqrt8f6fz
    committer: Alexander Ivanov <alexi1952@xxxxxxxxx>
    branch nick: maria-wl36
    timestamp: Fri 2009-10-16 17:28:13 +0400
    message:
      MWL#36: Add a mysqlbinlog option to change the used database.
      Add Rpl_filter to mysqlbinlog.cc
      Note. Though within MWL#36 we are going to use only two Rpl_filter's
            methods (add_db_rewrite and get_rewrite_db), we look forward for
            MWL#40 where Rpl_filter is likely to be used to its more extent.
      Note. Within MWL#36 we will not use Rpl_filter for supporting --database
            option: this option allows to specify only one database what
            doesn't correlate with Rpl_filter::add_do_db() (using this method
            will either appear "artificial" or require changing --database
            semantics). To be discussed within MWL#40.
      To add Rpl_filter we need:
      1. include sql_string.h
         There are two instances of sql_string.* files - in sql and in client
         directories. We need to use the ones from the sql dir.
      2. include sql_list.h
         This requires to define a client version of sql_alloc() function.
      3. include rpl_filter.h
         This requires a definition of system_charset_info variable.
         Besides, Rpl_filter::tables_ok() refers to a TABLE_LIST structure which
         encounts deep non-client dependencies and can't be used here as is. On
         the other hand, tables_ok() make use only few TABLE_LIST's members and
         none of them depends on specific server context. This allows to redefine
         TABLE_LIST in a client context so that tables_ok() becomes admissible
         (surely it's a kind of hack but (at least currently) it's better than
         #ifndef'ing this method in Rpl_filter definition).
      Also add Rpl_filter::rewrite_db_is_empty() method. This is needed to be
      able to check that --rewrite-db is not used jointly with --base64-output=
      always (this is not supported - at least currently).
    modified:
      client/mysqlbinlog.cc          sp1f-mysqlbinlog.cc-19700101030959-b3vgyo47ljent5mhbyj6ik33bi4bukad
      sql/rpl_filter.cc              sp1f-table_filter.cc-20050308201116-4anzb26smj76r56ihkpxzbtnzlzatr2k
      sql/rpl_filter.h               sp1f-table_filter.h-20050308201116-ynbrrxlqijcoxfwgnipwjhgfw7vhdytw
    ------------------------------------------------------------
    revno: 2643.51.2
    revision-id: alexi1952@xxxxxxxxx-20091016115816-tj67uvdvqrt8f6fz
    parent: alexi1952@xxxxxxxxx-20091016112009-il1xp74ksbm7i9ux
    committer: Alexander Ivanov <alexi1952@xxxxxxxxx>
    branch nick: maria-wl36
    timestamp: Fri 2009-10-16 15:58:16 +0400
    message:
      MWL#36: Add a mysqlbinlog option to change the used database.
      Add rewrite_db() member to the Table_map_log_event class.
      Each RBR-event in binary log is preceded by a Table_map event
      containing a (db_id, db_name) pair. The rewrite_db(new_name)
      function replaces db_name by new_name in a buffer containing
      Table_map event read from the binary log.
    modified:
      sql/log_event.cc               sp1f-log_event.cc-19700101030959-msmqlflsngxosswid2hpzxly5vfqdddc
      sql/log_event.h                sp1f-log_event.h-19700101030959-clq6ett55tcqbpys2i4cpfrdccq7j4om
    ------------------------------------------------------------
    revno: 2643.51.1
    revision-id: alexi1952@xxxxxxxxx-20091016112009-il1xp74ksbm7i9ux
    parent: knielsen@xxxxxxxxxxxxxxx-20091006183755-y08lid6fg8mnr8sk
    committer: Alexander Ivanov <alexi1952@xxxxxxxxx>
    branch nick: maria-wl36
    timestamp: Fri 2009-10-16 15:20:09 +0400
    message:
      MWL#36: Add a mysqlbinlog option to change the used database.
      Make sql_alloc() declaration "public" for a client context.
      The reason is that sql_alloc() is used in definition of some common
      purpose stuff (e.g. sql_list.*). To make this stuff available for a
      client context we declare sql_alloc() as a "virtual function", i.e.
      as a function that is already declared but must be defined in this
      context (note that definition of sql_alloc() in thr_malloc.cc is
      #ifndef'ed for MYSQL_CLIENT).
      Also make sql_string.h repeatedly includable.
    modified:
      client/sql_string.cc           sp1f-sql_string.cc-19700101030959-72h4johdz5mgcc6z2xceguohasr3pkrx
      sql/mysql_priv.h               sp1f-mysql_priv.h-19700101030959-4fl65tqpop5zfgxaxkqotu2fa2ree5ci
      sql/sql_string.cc              sp1f-sql_string.cc-19700101030959-yg6a37s5vnlpgxanuou6h2vbdmwbdxdx
      sql/sql_string.h               sp1f-sql_string.h-19700101030959-nogsoxwv222e4vm4toic7cabeb4swajz
      sql/thr_malloc.cc              sp1f-thr_malloc.cc-19700101030959-sg5hfbdswjtjtdjtmvppuc2eedch3p3s

Diff too large for email (1159 lines, the limit is 1000).