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
393e0f65
Commit
393e0f65
authored
Jul 14, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a compiler warning.
parent
9a52e13c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/sql_trigger.cc
sql/sql_trigger.cc
+4
-4
No files found.
sql/sql_trigger.cc
View file @
393e0f65
...
...
@@ -1805,16 +1805,16 @@ bool Table_triggers_list::change_table_name(THD *thd, const char *db,
bzero
(
&
table
,
sizeof
(
table
));
init_alloc_root
(
&
table
.
mem_root
,
8192
,
0
);
uchar
key
[
MAX_DBKEY_LENGTH
];
uint
key_length
=
(
uint
)
(
strmov
(
strmov
((
char
*
)
&
key
[
0
],
db
)
+
1
,
old_table
)
-
(
char
*
)
&
key
[
0
])
+
1
;
/*
This method interfaces the mysql server code protected by
either LOCK_open mutex or with an exclusive table name lock.
In the future, only an exclusive table name lock will be enough.
*/
#ifndef DBUG_OFF
uchar
key
[
MAX_DBKEY_LENGTH
];
uint
key_length
=
(
uint
)
(
strmov
(
strmov
((
char
*
)
&
key
[
0
],
db
)
+
1
,
old_table
)
-
(
char
*
)
&
key
[
0
])
+
1
;
if
(
!
is_table_name_exclusively_locked_by_this_thread
(
thd
,
key
,
key_length
))
safe_mutex_assert_owner
(
&
LOCK_open
);
#endif
...
...
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