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
62b2b087
Commit
62b2b087
authored
Sep 22, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
row0ins.c, ha_innodb.cc:
Table hash key len in query cache also includes null char at end
parent
a644b1f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
innobase/row/row0ins.c
innobase/row/row0ins.c
+6
-4
sql/ha_innodb.cc
sql/ha_innodb.cc
+5
-3
No files found.
innobase/row/row0ins.c
View file @
62b2b087
...
@@ -44,9 +44,11 @@ innobase_invalidate_query_cache(
...
@@ -44,9 +44,11 @@ innobase_invalidate_query_cache(
/*============================*/
/*============================*/
trx_t
*
trx
,
/* in: transaction which modifies the table */
trx_t
*
trx
,
/* in: transaction which modifies the table */
char
*
full_name
,
/* in: concatenation of database name, null
char
*
full_name
,
/* in: concatenation of database name, null
char '\0', table name; NOTE that in
char '\0', table name, null char'\0';
Windows this is always in LOWER CASE! */
NOTE that in Windows this is always
ulint
full_name_len
);
/* in: full name length */
in LOWER CASE! */
ulint
full_name_len
);
/* in: full name length where also the null
chars count */
/*************************************************************************
/*************************************************************************
...
@@ -426,7 +428,7 @@ row_ins_foreign_delete_or_set_null(
...
@@ -426,7 +428,7 @@ row_ins_foreign_delete_or_set_null(
/* We call a function in ha_innodb.cc */
/* We call a function in ha_innodb.cc */
innobase_invalidate_query_cache
(
thr_get_trx
(
thr
),
table_name_buf
,
innobase_invalidate_query_cache
(
thr_get_trx
(
thr
),
table_name_buf
,
ut_strlen
(
table
->
name
));
ut_strlen
(
table
->
name
)
+
1
);
node
=
thr
->
run_node
;
node
=
thr
->
run_node
;
ut_a
(
que_node_get_type
(
node
)
==
QUE_NODE_UPDATE
);
ut_a
(
que_node_get_type
(
node
)
==
QUE_NODE_UPDATE
);
...
...
sql/ha_innodb.cc
View file @
62b2b087
...
@@ -564,9 +564,11 @@ innobase_invalidate_query_cache(
...
@@ -564,9 +564,11 @@ innobase_invalidate_query_cache(
/*============================*/
/*============================*/
trx_t
*
trx
,
/* in: transaction which modifies the table */
trx_t
*
trx
,
/* in: transaction which modifies the table */
char
*
full_name
,
/* in: concatenation of database name, null
char
*
full_name
,
/* in: concatenation of database name, null
char '\0', table name; NOTE that in
char '\0', table name, null char'\0';
Windows this is always in LOWER CASE! */
NOTE that in Windows this is always
ulint
full_name_len
)
/* in: full name length */
in LOWER CASE! */
ulint
full_name_len
)
/* in: full name length where also the null
chars count */
{
{
/* Argument TRUE below means we are using transactions */
/* Argument TRUE below means we are using transactions */
query_cache
.
invalidate
((
THD
*
)(
trx
->
mysql_thd
),
query_cache
.
invalidate
((
THD
*
)(
trx
->
mysql_thd
),
...
...
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