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
82b582f5
Commit
82b582f5
authored
Sep 26, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/13424-bug-5.0-mysql
parents
743fbc7d
acf103fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
mysql-test/r/view_query_cache.result
mysql-test/r/view_query_cache.result
+9
-0
mysql-test/t/view_query_cache.test
mysql-test/t/view_query_cache.test
+12
-0
sql/sql_cache.cc
sql/sql_cache.cc
+2
-1
No files found.
mysql-test/r/view_query_cache.result
View file @
82b582f5
...
...
@@ -123,4 +123,13 @@ select * from v3;
a b
drop view v3;
drop table t1, t2;
create table t1(f1 int);
insert into t1 values(1),(2),(3);
create view v1 as select * from t1;
set query_cache_wlock_invalidate=1;
lock tables v1 read /*!32311 local */;
unlock tables;
set query_cache_wlock_invalidate=default;
drop view v1;
drop table t1;
set GLOBAL query_cache_size=default;
mysql-test/t/view_query_cache.test
View file @
82b582f5
...
...
@@ -84,4 +84,16 @@ select * from v3;
drop
view
v3
;
drop
table
t1
,
t2
;
#
# Bug #13424 locking view with query cache enabled crashes server
#
create
table
t1
(
f1
int
);
insert
into
t1
values
(
1
),(
2
),(
3
);
create
view
v1
as
select
*
from
t1
;
set
query_cache_wlock_invalidate
=
1
;
lock
tables
v1
read
/*!32311 local */
;
unlock
tables
;
set
query_cache_wlock_invalidate
=
default
;
drop
view
v1
;
drop
table
t1
;
set
GLOBAL
query_cache_size
=
default
;
sql/sql_cache.cc
View file @
82b582f5
...
...
@@ -1295,7 +1295,8 @@ void Query_cache::invalidate_locked_for_write(TABLE_LIST *tables_used)
DUMP
(
this
);
for
(;
tables_used
;
tables_used
=
tables_used
->
next_local
)
{
if
(
tables_used
->
lock_type
&
(
TL_WRITE_LOW_PRIORITY
|
TL_WRITE
))
if
(
tables_used
->
lock_type
&
(
TL_WRITE_LOW_PRIORITY
|
TL_WRITE
)
&&
tables_used
->
table
)
invalidate_table
(
tables_used
->
table
);
}
}
...
...
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