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
f1feac4f
Commit
f1feac4f
authored
Nov 24, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/my/mysql-4.0 into mashka.mysql.fi:/home/my/mysql-4.0
sql/opt_range.cc: Auto merged
parents
28068846
b8d5f709
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
37 additions
and
20 deletions
+37
-20
configure.in
configure.in
+1
-0
innobase/ut/ut0mem.c
innobase/ut/ut0mem.c
+6
-0
mysql-test/r/innodb_cache.result
mysql-test/r/innodb_cache.result
+10
-0
mysql-test/t/innodb_cache.test
mysql-test/t/innodb_cache.test
+8
-1
sql/handler.cc
sql/handler.cc
+1
-1
sql/sql_delete.cc
sql/sql_delete.cc
+4
-6
sql/sql_insert.cc
sql/sql_insert.cc
+3
-6
sql/sql_update.cc
sql/sql_update.cc
+4
-6
No files found.
configure.in
View file @
f1feac4f
...
...
@@ -15,6 +15,7 @@ SHARED_LIB_VERSION=11:0:0
# Set all version vars based on $VERSION. How do we do this more elegant ?
# Remember that regexps needs to quote [ and ] since this is run through m4
MYSQL_NO_DASH_VERSION
=
`
echo
$VERSION
|
sed
-e
"s|-.*
$|
|"
`
MYSQL_NO_DASH_VERSION
=
`
echo
$VERSION
|
sed
-e
"s|[[a-z]]*-.*
$|
|"
`
MYSQL_BASE_VERSION
=
`
echo
$MYSQL_NO_DASH_VERSION
|
sed
-e
"s|
\.
[[^.]]*
$|
|"
`
F_PART
=
`
echo
$MYSQL_BASE_VERSION
|
sed
-e
"s|
\.
||g"
|
sed
-e
"s|[a-zA-Z]
\+
||"
|sed
-e
"s|^
\(
..
\)
$|
\\
10|"
`
L_PART
=
`
echo
$MYSQL_NO_DASH_VERSION
|
sed
-e
"s|^[[0-9]]
\.
[[0-9]]*
\.
||"
|
sed
-e
"s|^
\(
.
\)
$|
0
\\
1|"
|
sed
-e
"s|[[a-z]]||"
`
...
...
innobase/ut/ut0mem.c
View file @
f1feac4f
...
...
@@ -90,6 +90,12 @@ ut_malloc_low(
"InnoDB: on Linux we get a stack trace.
\n
"
,
n
,
ut_total_allocated_memory
,
errno
);
/* Flush stderr to make more probable that the error
message gets in the error file before we generate a seg
fault */
fflush
(
stderr
);
os_fast_mutex_unlock
(
&
ut_list_mutex
);
/* Make an intentional seg fault so that we get a stack
...
...
mysql-test/r/innodb_cache.result
View file @
f1feac4f
...
...
@@ -98,3 +98,13 @@ commit;
show status like "Qcache_queries_in_cache";
Variable_name Value
Qcache_queries_in_cache 1
drop table if exists t1;
CREATE TABLE t1 (id int(11) NOT NULL auto_increment, PRIMARY KEY (id)) TYPE=InnoDB;
select count(*) from t1;
count(*)
0
insert into t1 (id) values (0);
select count(*) from t1;
count(*)
1
drop table t1;
mysql-test/t/innodb_cache.test
View file @
f1feac4f
...
...
@@ -47,4 +47,11 @@ select * from t3;
show
status
like
"Qcache_queries_in_cache"
;
show
status
like
"Qcache_hits"
;
commit
;
show
status
like
"Qcache_queries_in_cache"
;
\ No newline at end of file
show
status
like
"Qcache_queries_in_cache"
;
drop
table
if
exists
t1
;
CREATE
TABLE
t1
(
id
int
(
11
)
NOT
NULL
auto_increment
,
PRIMARY
KEY
(
id
))
TYPE
=
InnoDB
;
select
count
(
*
)
from
t1
;
insert
into
t1
(
id
)
values
(
0
);
select
count
(
*
)
from
t1
;
drop
table
t1
;
sql/handler.cc
View file @
f1feac4f
...
...
@@ -314,7 +314,7 @@ int ha_commit_trans(THD *thd, THD_TRANS* trans)
}
#endif
#ifdef HAVE_QUERY_CACHE
if
(
transaction_commited
)
if
(
transaction_commited
&&
thd
->
transaction
.
changed_tables
)
query_cache
.
invalidate
(
thd
->
transaction
.
changed_tables
);
#endif
/*HAVE_QUERY_CACHE*/
if
(
error
&&
trans
==
&
thd
->
transaction
.
all
&&
mysql_bin_log
.
is_open
())
...
...
sql/sql_delete.cc
View file @
f1feac4f
...
...
@@ -179,14 +179,12 @@ int mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, ORDER *order,
if
(
ha_autocommit_or_rollback
(
thd
,
error
>=
0
))
error
=
1
;
}
/*
Only invalidate the query cache if something changed or if we
didn't commit the transacion (query cache is automaticly
invalidated on commit)
Store table for future invalidation or invalidate it in
the query cache if something changed
*/
if
(
deleted
&&
(
!
transactional_table
||
thd
->
options
&
(
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
)))
if
(
deleted
)
{
query_cache_invalidate3
(
thd
,
table_list
,
1
);
}
...
...
sql/sql_insert.cc
View file @
f1feac4f
...
...
@@ -319,13 +319,10 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, List<Item> &fields,
error
=
ha_autocommit_or_rollback
(
thd
,
error
);
/*
Only invalidate the query cache if something changed or if we
didn't commit the transacion (query cache is automaticly
invalidated on commit)
Store table for future invalidation or invalidate it in
the query cache if something changed
*/
if
((
info
.
copied
||
info
.
deleted
)
&&
(
!
transactional_table
||
thd
->
options
&
(
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
)))
if
(
info
.
copied
||
info
.
deleted
)
{
query_cache_invalidate3
(
thd
,
table_list
,
1
);
}
...
...
sql/sql_update.cc
View file @
f1feac4f
...
...
@@ -318,14 +318,12 @@ int mysql_update(THD *thd,
if
(
ha_autocommit_or_rollback
(
thd
,
error
>=
0
))
error
=
1
;
}
/*
Only invalidate the query cache if something changed or if we
didn't commit the transacion (query cache is automaticly
invalidated on commit)
Store table for future invalidation or invalidate it in
the query cache if something changed
*/
if
(
updated
&&
(
!
transactional_table
||
thd
->
options
&
(
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
)))
if
(
updated
)
{
query_cache_invalidate3
(
thd
,
table_list
,
1
);
}
...
...
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