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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d966189d
Commit
d966189d
authored
Aug 16, 2004
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@213.136.52.20:/home/bk/mysql-4.1
into mysql.com:/home/mysql_src/mysql-4.1-874
parents
79a3576f
44a599a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
sql/set_var.cc
sql/set_var.cc
+7
-1
No files found.
sql/set_var.cc
View file @
d966189d
...
@@ -34,6 +34,12 @@
...
@@ -34,6 +34,12 @@
- If the variable should show up in 'show variables' add it to the
- If the variable should show up in 'show variables' add it to the
init_vars[] struct in this file
init_vars[] struct in this file
NOTES:
- Be careful with var->save_result: sys_var::check() only updates
ulonglong_value; so other members of the union are garbage then; to use
them you must first assign a value to them (in specific ::check() for
example).
TODO:
TODO:
- Add full support for the variable character_set (for 4.1)
- Add full support for the variable character_set (for 4.1)
...
@@ -2332,7 +2338,7 @@ bool sys_var_slave_skip_counter::update(THD *thd, set_var *var)
...
@@ -2332,7 +2338,7 @@ bool sys_var_slave_skip_counter::update(THD *thd, set_var *var)
bool
sys_var_sync_binlog_period
::
update
(
THD
*
thd
,
set_var
*
var
)
bool
sys_var_sync_binlog_period
::
update
(
THD
*
thd
,
set_var
*
var
)
{
{
pthread_mutex_t
*
lock_log
=
mysql_bin_log
.
get_log_lock
();
pthread_mutex_t
*
lock_log
=
mysql_bin_log
.
get_log_lock
();
sync_binlog_period
=
var
->
save_result
.
u
long_value
;
sync_binlog_period
=
(
ulong
)
var
->
save_result
.
ulong
long_value
;
/*
/*
Must reset the counter otherwise it may already be beyond the new period
Must reset the counter otherwise it may already be beyond the new period
and so the new period will not be taken into account. Need mutex otherwise
and so the new period will not be taken into account. Need mutex otherwise
...
...
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