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
8c75a406
Commit
8c75a406
authored
Dec 04, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-drop-4.1
parents
cf45aa2b
4eb6fd53
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+8
-0
mysql-test/t/query_cache.test
mysql-test/t/query_cache.test
+13
-0
sql/sql_db.cc
sql/sql_db.cc
+3
-2
No files found.
mysql-test/r/query_cache.result
View file @
8c75a406
...
...
@@ -809,4 +809,12 @@ show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 4
DROP TABLE t1;
CREATE TABLE t1 (a int(1));
CREATE DATABASE mysqltest;
USE mysqltest;
DROP DATABASE mysqltest;
SELECT * FROM test.t1;
a
USE test;
DROP TABLE t1;
SET GLOBAL query_cache_size=0;
mysql-test/t/query_cache.test
View file @
8c75a406
...
...
@@ -585,4 +585,17 @@ show status like "Qcache_queries_in_cache";
# Keep things tidy
#
DROP
TABLE
t1
;
#
# DROP current database test
#
CREATE
TABLE
t1
(
a
int
(
1
));
CREATE
DATABASE
mysqltest
;
USE
mysqltest
;
DROP
DATABASE
mysqltest
;
SELECT
*
FROM
test
.
t1
;
USE
test
;
DROP
TABLE
t1
;
SET
GLOBAL
query_cache_size
=
0
;
sql/sql_db.cc
View file @
8c75a406
...
...
@@ -409,7 +409,7 @@ int mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
when the slave is replicating a DROP DATABASE:
- garbage characters in the error message:
"Error 'Can't drop database 'test2'; database doesn't exist' on query
'h4zI'"
'h4zI'"
- segfault
- hang in "free(vio)" (yes!) in the I/O or SQL slave threads (so slave
server hangs at shutdown etc).
...
...
@@ -418,7 +418,8 @@ int mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
{
if
(
!
(
thd
->
slave_thread
))
/* a slave thread will free it itself */
x_free
(
thd
->
db
);
thd
->
db
=
0
;
thd
->
db
=
0
;
thd
->
db_length
=
0
;
}
exit2:
VOID
(
pthread_mutex_unlock
(
&
LOCK_mysql_create_db
));
...
...
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