Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8355b39d
Commit
8355b39d
authored
May 17, 2005
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/opt/local/work/mysql-5.0-9643
parents
bb8348fa
be4920cd
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
1 deletion
+49
-1
mysql-test/r/rpl_variables.result
mysql-test/r/rpl_variables.result
+9
-0
mysql-test/t/rpl_variables-master.opt
mysql-test/t/rpl_variables-master.opt
+1
-0
mysql-test/t/rpl_variables.test
mysql-test/t/rpl_variables.test
+8
-0
sql/set_var.cc
sql/set_var.cc
+4
-0
sql/sql_show.cc
sql/sql_show.cc
+26
-0
sql/structs.h
sql/structs.h
+1
-1
No files found.
mysql-test/r/rpl_variables.result
View file @
8355b39d
...
@@ -6,3 +6,12 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
...
@@ -6,3 +6,12 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
start slave;
set global slave_net_timeout=100;
set global slave_net_timeout=100;
set global sql_slave_skip_counter=100;
set global sql_slave_skip_counter=100;
show variables like 'slave_compressed_protocol';
Variable_name Value
slave_compressed_protocol OFF
show variables like 'slave_load_tmpdir';
Variable_name Value
slave_load_tmpdir MYSQL_TEST_DIR/var/tmp/
show variables like 'slave_skip_errors';
Variable_name Value
slave_skip_errors 3,100,137,643,1752
mysql-test/t/rpl_variables-master.opt
0 → 100644
View file @
8355b39d
--slave-skip-errors=3,100,137,643,1752
mysql-test/t/rpl_variables.test
View file @
8355b39d
...
@@ -2,3 +2,11 @@ source include/master-slave.inc;
...
@@ -2,3 +2,11 @@ source include/master-slave.inc;
set
global
slave_net_timeout
=
100
;
set
global
slave_net_timeout
=
100
;
set
global
sql_slave_skip_counter
=
100
;
set
global
sql_slave_skip_counter
=
100
;
# BUG #7800: Add various-slave related variables to SHOW VARIABLES
show
variables
like
'slave_compressed_protocol'
;
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
show
variables
like
'slave_load_tmpdir'
;
# We just set some arbitrary values in variables-master.opt so we can test
# that a list of values works correctly
show
variables
like
'slave_skip_errors'
;
sql/set_var.cc
View file @
8355b39d
...
@@ -945,7 +945,11 @@ struct show_var_st init_vars[]= {
...
@@ -945,7 +945,11 @@ struct show_var_st init_vars[]= {
{
"skip_networking"
,
(
char
*
)
&
opt_disable_networking
,
SHOW_BOOL
},
{
"skip_networking"
,
(
char
*
)
&
opt_disable_networking
,
SHOW_BOOL
},
{
"skip_show_database"
,
(
char
*
)
&
opt_skip_show_db
,
SHOW_BOOL
},
{
"skip_show_database"
,
(
char
*
)
&
opt_skip_show_db
,
SHOW_BOOL
},
#ifdef HAVE_REPLICATION
#ifdef HAVE_REPLICATION
{
sys_slave_compressed_protocol
.
name
,
(
char
*
)
&
sys_slave_compressed_protocol
,
SHOW_SYS
},
{
"slave_load_tmpdir"
,
(
char
*
)
&
slave_load_tmpdir
,
SHOW_CHAR_PTR
},
{
sys_slave_net_timeout
.
name
,(
char
*
)
&
sys_slave_net_timeout
,
SHOW_SYS
},
{
sys_slave_net_timeout
.
name
,(
char
*
)
&
sys_slave_net_timeout
,
SHOW_SYS
},
{
"slave_skip_errors"
,
(
char
*
)
&
slave_error_mask
,
SHOW_SLAVE_SKIP_ERRORS
},
{
sys_slave_trans_retries
.
name
,(
char
*
)
&
sys_slave_trans_retries
,
SHOW_SYS
},
{
sys_slave_trans_retries
.
name
,(
char
*
)
&
sys_slave_trans_retries
,
SHOW_SYS
},
#endif
#endif
{
sys_slow_launch_time
.
name
,
(
char
*
)
&
sys_slow_launch_time
,
SHOW_SYS
},
{
sys_slow_launch_time
.
name
,
(
char
*
)
&
sys_slow_launch_time
,
SHOW_SYS
},
...
...
sql/sql_show.cc
View file @
8355b39d
...
@@ -1345,6 +1345,32 @@ static bool show_status_array(THD *thd, const char *wild,
...
@@ -1345,6 +1345,32 @@ static bool show_status_array(THD *thd, const char *wild,
pthread_mutex_unlock
(
&
LOCK_active_mi
);
pthread_mutex_unlock
(
&
LOCK_active_mi
);
break
;
break
;
}
}
case
SHOW_SLAVE_SKIP_ERRORS
:
{
MY_BITMAP
*
bitmap
=
(
MY_BITMAP
*
)
value
;
if
(
!
use_slave_mask
||
bitmap_is_clear_all
(
bitmap
))
{
end
=
strmov
(
buff
,
"OFF"
);
}
else
if
(
bitmap_is_set_all
(
bitmap
))
{
end
=
strmov
(
buff
,
"ALL"
);
}
else
{
for
(
int
i
=
1
;
i
<
MAX_SLAVE_ERROR
;
i
++
)
{
if
(
bitmap_is_set
(
bitmap
,
i
))
{
end
=
int10_to_str
(
i
,
(
char
*
)
end
,
10
);
*
(
char
*
)
end
++=
','
;
}
}
if
(
end
!=
buff
)
end
--
;
// Remove last ','
}
break
;
}
#endif
/* HAVE_REPLICATION */
#endif
/* HAVE_REPLICATION */
case
SHOW_OPENTABLES
:
case
SHOW_OPENTABLES
:
end
=
int10_to_str
((
long
)
cached_tables
(),
buff
,
10
);
end
=
int10_to_str
((
long
)
cached_tables
(),
buff
,
10
);
...
...
sql/structs.h
View file @
8355b39d
...
@@ -184,7 +184,7 @@ enum SHOW_TYPE
...
@@ -184,7 +184,7 @@ enum SHOW_TYPE
#endif
/* HAVE_OPENSSL */
#endif
/* HAVE_OPENSSL */
SHOW_RPL_STATUS
,
SHOW_SLAVE_RUNNING
,
SHOW_SLAVE_RETRIED_TRANS
,
SHOW_RPL_STATUS
,
SHOW_SLAVE_RUNNING
,
SHOW_SLAVE_RETRIED_TRANS
,
SHOW_KEY_CACHE_LONG
,
SHOW_KEY_CACHE_CONST_LONG
,
SHOW_KEY_CACHE_LONG
,
SHOW_KEY_CACHE_CONST_LONG
,
SHOW_LONG_STATUS
,
SHOW_LONG_CONST_STATUS
SHOW_LONG_STATUS
,
SHOW_LONG_CONST_STATUS
,
SHOW_SLAVE_SKIP_ERRORS
};
};
enum
SHOW_COMP_OPTION
{
SHOW_OPTION_YES
,
SHOW_OPTION_NO
,
SHOW_OPTION_DISABLED
};
enum
SHOW_COMP_OPTION
{
SHOW_OPTION_YES
,
SHOW_OPTION_NO
,
SHOW_OPTION_DISABLED
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment