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
eec585f1
Commit
eec585f1
authored
Oct 10, 2010
by
Alfranio Correia
Browse files
Options
Browse Files
Download
Plain Diff
merge mysql-5.1-bugteam (local) --> mysql-5.1-bugteam
parents
10812c07
9665bee5
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 @
eec585f1
...
...
@@ -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