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
458a947f
Commit
458a947f
authored
Dec 26, 2003
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in table level privilege GRANT handling. (Bug #2178)
Portability fixes
parent
5eb92715
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
6 deletions
+11
-6
mysql-test/r/rpl_until.result
mysql-test/r/rpl_until.result
+1
-1
mysql-test/t/rpl_until.test
mysql-test/t/rpl_until.test
+3
-3
sql/slave.cc
sql/slave.cc
+1
-1
sql/slave.h
sql/slave.h
+5
-0
sql/sql_acl.cc
sql/sql_acl.cc
+1
-1
No files found.
mysql-test/r/rpl_until.result
View file @
458a947f
...
...
@@ -31,7 +31,7 @@ n
4
show slave status;
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 561 slave-relay-bin.000002
332 master-bin.000001 Yes No 0 0 244 649
Master master-bin.000001 244 No #
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 561 slave-relay-bin.000002
# master-bin.000001 Yes No 0 0 244 #
Master master-bin.000001 244 No #
start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291;
select * from t1;
n
...
...
mysql-test/t/rpl_until.test
View file @
458a947f
...
...
@@ -29,7 +29,7 @@ sleep 2;
# here table should be still not deleted
select
*
from
t1
;
--
replace_result
$MASTER_MYPORT
MASTER_MYPORT
--
replace_column
1
# 33 #
--
replace_column
1
#
9 # 23 #
33 #
show
slave
status
;
# this should fail right after start
...
...
@@ -59,9 +59,9 @@ stop slave;
# this should stop immideately
start
slave
until
master_log_file
=
'master-bin.000001'
,
master_log_pos
=
561
;
sleep
2
;
--
real
-
sleep
2
;
# here the sql slave thread should be stopped
--
replace_result
$MASTER_MYPORT
MASTER_MYPORT
--
replace_result
$MASTER_MYPORT
MASTER_MYPORT
bin
.
000005
bin
.
000004
bin
.
000006
bin
.
000004
bin
.
000007
bin
.
000004
--
replace_column
1
# 9 # 23 # 33 #
show
slave
status
;
...
...
sql/slave.cc
View file @
458a947f
...
...
@@ -2682,7 +2682,7 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli)
rli
->
is_until_satisfied
())
{
sql_print_error
(
"Slave SQL thread stopped because it reached its"
" UNTIL position
"
);
" UNTIL position
%ld"
,
(
long
)
rli
->
until_pos
()
);
/*
Setting abort_slave flag because we do not want additional message about
error in query execution to be printed.
...
...
sql/slave.h
View file @
458a947f
...
...
@@ -324,6 +324,11 @@ typedef struct st_relay_log_info
/* Check if UNTIL condition is satisfied. See slave.cc for more. */
bool
is_until_satisfied
();
inline
ulonglong
until_pos
()
{
return
((
until_condition
==
UNTIL_MASTER_POS
)
?
group_master_log_pos
:
group_relay_log_pos
);
}
}
RELAY_LOG_INFO
;
...
...
sql/sql_acl.cc
View file @
458a947f
...
...
@@ -2543,7 +2543,7 @@ my_bool grant_init(THD *org_thd)
do
{
GRANT_TABLE
*
mem_check
;
if
(
!
(
mem_check
=
new
GRANT_TABLE
(
t_table
,
c_table
))
||
mem_check
->
ok
())
if
(
!
(
mem_check
=
new
GRANT_TABLE
(
t_table
,
c_table
))
||
!
mem_check
->
ok
())
{
/* This could only happen if we are out memory */
grant_option
=
FALSE
;
/* purecov: deadcode */
...
...
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