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
38effd56
Commit
38effd56
authored
Apr 08, 2008
by
thek@adventure.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge error between two patches caused error out-of-bounds assignment.
parent
4f15839f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/sql_acl.cc
sql/sql_acl.cc
+3
-3
No files found.
sql/sql_acl.cc
View file @
38effd56
...
...
@@ -3539,7 +3539,7 @@ static my_bool grant_load_procs_priv(TABLE *p_table)
bool
check_no_resolve
=
specialflag
&
SPECIAL_NO_RESOLVE
;
MEM_ROOT
**
save_mem_root_ptr
=
my_pthread_getspecific_ptr
(
MEM_ROOT
**
,
THR_MALLOC
);
DBUG_ENTER
(
"grant_load"
);
DBUG_ENTER
(
"grant_load
_procs_priv
"
);
(
void
)
hash_init
(
&
proc_priv_hash
,
system_charset_info
,
0
,
0
,
0
,
(
hash_get_key
)
get_grant_table
,
0
,
0
);
...
...
@@ -3723,6 +3723,7 @@ static my_bool grant_reload_procs_priv(THD *thd)
table
.
alias
=
table
.
table_name
=
(
char
*
)
"procs_priv"
;
table
.
db
=
(
char
*
)
"mysql"
;
table
.
lock_type
=
TL_READ
;
table
.
skip_temporary
=
1
;
if
(
simple_open_n_lock_tables
(
thd
,
&
table
))
{
...
...
@@ -3788,8 +3789,7 @@ my_bool grant_reload(THD *thd)
tables
[
0
].
db
=
tables
[
1
].
db
=
(
char
*
)
"mysql"
;
tables
[
0
].
next_local
=
tables
[
0
].
next_global
=
tables
+
1
;
tables
[
0
].
lock_type
=
tables
[
1
].
lock_type
=
TL_READ
;
tables
[
0
].
skip_temporary
=
tables
[
1
].
skip_temporary
=
tables
[
2
].
skip_temporary
=
TRUE
;
tables
[
0
].
skip_temporary
=
tables
[
1
].
skip_temporary
=
TRUE
;
/*
To avoid deadlocks we should obtain table locks before
obtaining LOCK_grant rwlock.
...
...
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