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
36183379
Commit
36183379
authored
Oct 06, 2010
by
Alfranio Correia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#57098 RBR breaks on changing user password on 5.1 master -> 5.5 slave
Backported the patch for BUG#55452.
parent
58995280
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
sql/sql_acl.cc
sql/sql_acl.cc
+15
-0
No files found.
sql/sql_acl.cc
View file @
36183379
...
...
@@ -1593,6 +1593,7 @@ bool change_password(THD *thd, const char *host, const char *user,
/* Buffer should be extended when password length is extended. */
char
buff
[
512
];
ulong
query_length
;
bool
save_binlog_row_based
;
uint
new_password_len
=
(
uint
)
strlen
(
new_password
);
bool
result
=
1
;
DBUG_ENTER
(
"change_password"
);
...
...
@@ -1628,6 +1629,14 @@ bool change_password(THD *thd, const char *host, const char *user,
if
(
!
(
table
=
open_ltable
(
thd
,
&
tables
,
TL_WRITE
,
0
)))
DBUG_RETURN
(
1
);
/*
This statement will be replicated as a statement, even when using
row-based replication. The flag will be reset at the end of the
statement.
*/
if
((
save_binlog_row_based
=
thd
->
current_stmt_binlog_row_based
))
thd
->
clear_current_stmt_binlog_row_based
();
VOID
(
pthread_mutex_lock
(
&
acl_cache
->
lock
));
ACL_USER
*
acl_user
;
if
(
!
(
acl_user
=
find_acl_user
(
host
,
user
,
TRUE
)))
...
...
@@ -1663,6 +1672,12 @@ bool change_password(THD *thd, const char *host, const char *user,
}
end:
close_thread_tables
(
thd
);
/* Restore the state of binlog format */
DBUG_ASSERT
(
!
thd
->
current_stmt_binlog_row_based
);
if
(
save_binlog_row_based
)
thd
->
set_current_stmt_binlog_row_based
();
DBUG_RETURN
(
result
);
}
...
...
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