Below is the list of changes that have just been committed into a
4.0 repository of sasha. When sasha does a push, they will be propogated to
the main repository and within 24 hours after the push to the public repository.
For information on how to access the public repository
see http://www.mysql.com/doc/I/n/Installing_source_tree.html
ChangeSet@stripped, 2001-08-04 05:48:58-06:00, sasha@stripped
new file_id generation method
BitKeeper/etc/ignore
1.77 01/08/04 05:48:58 sasha@stripped +1 -0
Added vio/viotest-ssl to the ignore list
sql/log.cc
1.65 01/08/04 05:48:58 sasha@stripped +10 -1
use a different method to generate unique file_id
sql/log_event.cc
1.48 01/08/04 05:48:58 sasha@stripped +2 -1
new file_id generationg method
sql/sql_class.h
1.88 01/08/04 05:48:58 sasha@stripped +3 -0
new file_id generationg method
mysql-test/r/rpl_log.result
1.10 01/08/04 05:48:57 sasha@stripped +9 -9
fixed result for new file_id generating method
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: sasha
# Host: mysql.sashanet.com
# Root: /home/sasha/src/bk/mysql-4.0
--- 1.64/sql/log.cc Fri Aug 3 15:57:52 2001
+++ 1.65/sql/log.cc Sat Aug 4 05:48:58 2001
@@ -81,7 +81,7 @@
MYSQL_LOG::MYSQL_LOG(): last_time(0), query_start(0),index_file(-1),
name(0), log_type(LOG_CLOSED),write_error(0),
- inited(0), log_seq(1), no_rotate(0)
+ inited(0), log_seq(1), file_id(1),no_rotate(0)
{
/*
We don't want to intialize LOCK_Log here as the thread system may
@@ -722,6 +722,15 @@
new_file(1); // inside mutex
VOID(pthread_mutex_unlock(&LOCK_log));
return error;
+}
+
+uint MYSQL_LOG::next_file_id()
+{
+ uint res;
+ pthread_mutex_lock(&LOCK_log);
+ res = file_id++;
+ pthread_mutex_unlock(&LOCK_log);
+ return res;
}
/*
--- 1.47/sql/log_event.cc Fri Aug 3 15:57:52 2001
+++ 1.48/sql/log_event.cc Sat Aug 4 05:48:58 2001
@@ -45,6 +45,7 @@
#ifndef MYSQL_CLIENT
+
static void pretty_print_char(String* packet, int c)
{
packet->append('\'');
@@ -1106,7 +1107,7 @@
char* block_arg, uint block_len_arg):
Load_log_event(thd_arg,ex,db_arg,table_name_arg,fields_arg,handle_dup),
fake_base(0),block(block_arg),block_len(block_len_arg),
- file_id(thd_arg->file_id = thd_arg->query_id)
+ file_id(thd_arg->file_id = mysql_bin_log.next_file_id())
{
}
#endif
--- 1.87/sql/sql_class.h Fri Aug 3 15:58:44 2001
+++ 1.88/sql/sql_class.h Sat Aug 4 05:48:58 2001
@@ -65,6 +65,8 @@
bool write_error,inited;
uint32 log_seq; // current event sequence number
// needed this for binlog
+ uint file_id; // current file sequence number for load data infile
+ // binary logging
bool no_rotate; // for binlog - if log name can never change
// we should not try to rotate it or write any rotation events
// the user should use FLUSH MASTER instead of FLUSH LOGS for
@@ -99,6 +101,7 @@
int find_first_log(LOG_INFO* linfo, const char* log_name);
int find_next_log(LOG_INFO* linfo);
int get_current_log(LOG_INFO* linfo);
+ uint next_file_id();
inline bool is_open() { return log_type != LOG_CLOSED; }
char* get_index_fname() { return index_file_name;}
--- 1.76/BitKeeper/etc/ignore Fri Jul 6 19:07:17 2001
+++ 1.77/BitKeeper/etc/ignore Sat Aug 4 05:48:58 2001
@@ -375,3 +375,4 @@
support-files/mysql.spec
tags
tmp/*
+vio/viotest-ssl
--- 1.9/mysql-test/r/rpl_log.result Fri Aug 3 15:57:52 2001
+++ 1.10/mysql-test/r/rpl_log.result Sat Aug 4 05:48:57 2001
@@ -5,8 +5,8 @@
master-bin.001 200 Query 1 4 use test; insert into t1 values (NULL)
master-bin.001 263 Query 1 5 use test; drop table t1
master-bin.001 311 Query 1 6 use test; create table t1 (word char(20) not null)
-master-bin.001 386 Create_file 1 7 db=test;table=t1;file_id=11;block_len=81
-master-bin.001 554 Exec_load 1 8 ;file_id=11
+master-bin.001 386 Create_file 1 7 db=test;table=t1;file_id=1;block_len=81
+master-bin.001 554 Exec_load 1 8 ;file_id=1
master-bin.001 577 Query 1 9 use test; drop table t1
Log_name Pos Event_type Server_id Log_seq Info
master-bin.001 79 Query 1 2 use test; create table t1(n int not null auto_increment primary key)
@@ -22,8 +22,8 @@
master-bin.001 200 Query 1 4 use test; insert into t1 values (NULL)
master-bin.001 263 Query 1 5 use test; drop table t1
master-bin.001 311 Query 1 6 use test; create table t1 (word char(20) not null)
-master-bin.001 386 Create_file 1 7 db=test;table=t1;file_id=11;block_len=81
-master-bin.001 554 Exec_load 1 8 ;file_id=11
+master-bin.001 386 Create_file 1 7 db=test;table=t1;file_id=1;block_len=81
+master-bin.001 554 Exec_load 1 8 ;file_id=1
master-bin.001 577 Query 1 9 use test; drop table t1
master-bin.001 625 Rotate 1 10 master-bin.002;pos=4
master-bin.001 666 Stop 1 11
@@ -46,11 +46,11 @@
slave-bin.001 253 Query 1 4 use test; insert into t1 values (NULL)
slave-bin.001 316 Query 1 5 use test; drop table t1
slave-bin.001 364 Query 1 6 use test; create table t1 (word char(20) not null)
-slave-bin.001 439 Create_file 1 7 db=test;table=t1;file_id=11;block_len=81
-slave-bin.001 647 Exec_load 1 8 ;file_id=11
-slave-bin.001 670 Query 1 9 use test; drop table t1
-slave-bin.001 718 Rotate 1 4 slave-bin.002;pos=4; forced by master
-slave-bin.001 758 Stop 2 5
+slave-bin.001 439 Create_file 1 7 db=test;table=t1;file_id=1;block_len=81
+slave-bin.001 646 Exec_load 1 8 ;file_id=1
+slave-bin.001 669 Query 1 9 use test; drop table t1
+slave-bin.001 717 Rotate 1 4 slave-bin.002;pos=4; forced by master
+slave-bin.001 757 Stop 2 5
Log_name Pos Event_type Server_id Log_seq Info
slave-bin.002 4 Start 2 1 Server ver: $VERSION, Binlog ver: 2
slave-bin.002 79 Slave 2 10 host=127.0.0.1,port=$MASTER_MYPORT,log=master-bin.002,pos=4
| Thread |
|---|
| • bk commit into 4.0 tree | sasha | 4 Aug |