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
050a9f3f
Commit
050a9f3f
authored
May 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge hf@192.168.21.28:work/mysql-4.1.16892
into mysql.com:/home/hf/work/mysql-4.1.mrg
parents
651c0c18
f4c6c0ed
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
4 deletions
+30
-4
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-0
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+1
-0
mysql-test/r/analyze.result
mysql-test/r/analyze.result
+9
-0
mysql-test/t/analyze.test
mysql-test/t/analyze.test
+9
-0
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+1
-0
sql/sql_table.cc
sql/sql_table.cc
+9
-4
No files found.
mysql-test/mysql-test-run.pl
View file @
050a9f3f
...
@@ -678,6 +678,7 @@ sub command_line_setup () {
...
@@ -678,6 +678,7 @@ sub command_line_setup () {
$glob_use_embedded_server
=
1
;
$glob_use_embedded_server
=
1
;
push
(
@glob_test_mode
,
"
embedded
");
push
(
@glob_test_mode
,
"
embedded
");
$opt_skip_rpl
=
1
;
# We never run replication with embedded
$opt_skip_rpl
=
1
;
# We never run replication with embedded
$opt_skip_ndbcluster
=
1
;
if
(
$opt_extern
)
if
(
$opt_extern
)
{
{
...
...
mysql-test/mysql-test-run.sh
View file @
050a9f3f
...
@@ -279,6 +279,7 @@ while test $# -gt 0; do
...
@@ -279,6 +279,7 @@ while test $# -gt 0; do
USE_EMBEDDED_SERVER
=
1
USE_EMBEDDED_SERVER
=
1
USE_MANAGER
=
0
NO_SLAVE
=
1
USE_MANAGER
=
0
NO_SLAVE
=
1
USE_RUNNING_SERVER
=
""
USE_RUNNING_SERVER
=
""
USE_NDBCLUSTER
=
""
TEST_MODE
=
"
$TEST_MODE
embedded"
;;
TEST_MODE
=
"
$TEST_MODE
embedded"
;;
--purify
)
--purify
)
USE_PURIFY
=
1
USE_PURIFY
=
1
...
...
mysql-test/r/analyze.result
View file @
050a9f3f
...
@@ -37,3 +37,12 @@ Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_
...
@@ -37,3 +37,12 @@ Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_
execute stmt1;
execute stmt1;
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
deallocate prepare stmt1;
deallocate prepare stmt1;
create temporary table t1(a int, index(a));
insert into t1 values('1'),('2'),('3'),('4'),('5');
analyze table t1;
Table Op Msg_type Msg_text
test.t1 analyze status OK
show index from t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
t1 1 a 1 a A 5 NULL NULL YES BTREE
drop table t1;
mysql-test/t/analyze.test
View file @
050a9f3f
...
@@ -48,4 +48,13 @@ execute stmt1;
...
@@ -48,4 +48,13 @@ execute stmt1;
execute
stmt1
;
execute
stmt1
;
deallocate
prepare
stmt1
;
deallocate
prepare
stmt1
;
#
# bug#15225 (ANALYZE temporary has no effect)
#
create
temporary
table
t1
(
a
int
,
index
(
a
));
insert
into
t1
values
(
'1'
),(
'2'
),(
'3'
),(
'4'
),(
'5'
);
analyze
table
t1
;
show
index
from
t1
;
drop
table
t1
;
# End of 4.1 tests
# End of 4.1 tests
mysql-test/t/mysqltest.test
View file @
050a9f3f
--
source
include
/
not_embedded
.
inc
# ============================================================================
# ============================================================================
#
#
...
...
sql/sql_table.cc
View file @
050a9f3f
...
@@ -2164,10 +2164,15 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables,
...
@@ -2164,10 +2164,15 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables,
table
->
table
->
version
=
0
;
// Force close of table
table
->
table
->
version
=
0
;
// Force close of table
else
if
(
open_for_modify
)
else
if
(
open_for_modify
)
{
{
pthread_mutex_lock
(
&
LOCK_open
);
if
(
table
->
table
->
tmp_table
)
remove_table_from_cache
(
thd
,
table
->
table
->
table_cache_key
,
table
->
table
->
file
->
info
(
HA_STATUS_CONST
);
table
->
table
->
real_name
,
RTFC_NO_FLAG
);
else
pthread_mutex_unlock
(
&
LOCK_open
);
{
pthread_mutex_lock
(
&
LOCK_open
);
remove_table_from_cache
(
thd
,
table
->
table
->
table_cache_key
,
table
->
table
->
real_name
,
RTFC_NO_FLAG
);
pthread_mutex_unlock
(
&
LOCK_open
);
}
/* May be something modified consequently we have to invalidate cache */
/* May be something modified consequently we have to invalidate cache */
query_cache_invalidate3
(
thd
,
table
->
table
,
0
);
query_cache_invalidate3
(
thd
,
table
->
table
,
0
);
}
}
...
...
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