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
3b2b641d
Commit
3b2b641d
authored
Mar 16, 2007
by
thek@kpdesk.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge kpdesk.mysql.com:/home/thek/dev/bug26807/my51-bug26807
into kpdesk.mysql.com:/home/thek/dev/mysql-5.1-runtime
parents
7d84ef0e
21817926
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
mysql-test/r/skip_grants.result
mysql-test/r/skip_grants.result
+2
-0
mysql-test/t/skip_grants.test
mysql-test/t/skip_grants.test
+7
-0
sql/mysqld.cc
sql/mysqld.cc
+5
-0
sql/set_var.cc
sql/set_var.cc
+1
-1
No files found.
mysql-test/r/skip_grants.result
View file @
3b2b641d
...
...
@@ -58,3 +58,5 @@ DROP PROCEDURE p3;
DROP FUNCTION f1;
DROP FUNCTION f2;
DROP FUNCTION f3;
set global event_scheduler=1;
ERROR HY000: The MySQL server is running with the --event-scheduler=DISABLED or --skip-grant-tables option so it cannot execute this statement
mysql-test/t/skip_grants.test
View file @
3b2b641d
...
...
@@ -108,3 +108,10 @@ DROP PROCEDURE p3;
DROP
FUNCTION
f1
;
DROP
FUNCTION
f2
;
DROP
FUNCTION
f3
;
#
# Bug #26807 "set global event_scheduler=1" and --skip-grant-tables crashes server
#
--
error
ER_OPTION_PREVENTS_STATEMENT
set
global
event_scheduler
=
1
;
sql/mysqld.cc
View file @
3b2b641d
...
...
@@ -3758,6 +3758,7 @@ we force server id to 2, but this MySQL server will not act as a slave.");
udf_init
();
#endif
}
init_status_vars
();
if
(
opt_bootstrap
)
/* If running with bootstrap, do not start replication. */
opt_skip_slave_start
=
1
;
...
...
@@ -3804,6 +3805,10 @@ we force server id to 2, but this MySQL server will not act as a slave.");
if
(
Events
::
get_instance
()
->
init
())
unireg_abort
(
1
);
}
else
{
Events
::
opt_event_scheduler
=
Events
::
EVENTS_DISABLED
;
}
/* Signal threads waiting for server to be started */
pthread_mutex_lock
(
&
LOCK_server_started
);
...
...
sql/set_var.cc
View file @
3b2b641d
...
...
@@ -4000,7 +4000,7 @@ sys_var_event_scheduler::update(THD *thd, set_var *var)
DBUG_ENTER
(
"sys_var_event_scheduler::update"
);
if
(
Events
::
opt_event_scheduler
==
Events
::
EVENTS_DISABLED
)
{
my_error
(
ER_OPTION_PREVENTS_STATEMENT
,
MYF
(
0
),
"--event-scheduler=DISABLED"
);
my_error
(
ER_OPTION_PREVENTS_STATEMENT
,
MYF
(
0
),
"--event-scheduler=DISABLED
or --skip-grant-tables
"
);
DBUG_RETURN
(
TRUE
);
}
...
...
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