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
5b29f59a
Commit
5b29f59a
authored
Oct 27, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed access to freed memory
parent
3493f54a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
+7
-9
innobase/srv/srv0srv.c
innobase/srv/srv0srv.c
+0
-2
sql/set_var.cc
sql/set_var.cc
+0
-2
sql/sql_cache.cc
sql/sql_cache.cc
+3
-3
sql/sql_insert.cc
sql/sql_insert.cc
+4
-2
No files found.
innobase/srv/srv0srv.c
View file @
5b29f59a
...
...
@@ -881,8 +881,6 @@ srv_general_init(void)
/*======================= InnoDB Server FIFO queue =======================*/
/* Maximum allowable purge history length. <=0 means 'infinite'. */
ulint
srv_max_purge_lag
=
0
;
/*************************************************************************
Puts an OS thread to wait if there are too many concurrent threads
...
...
sql/set_var.cc
View file @
5b29f59a
...
...
@@ -358,8 +358,6 @@ sys_var_thd_bool sys_innodb_table_locks("innodb_table_locks",
&
SV
::
innodb_table_locks
);
sys_var_long_ptr
sys_innodb_autoextend_increment
(
"innodb_autoextend_increment"
,
&
srv_auto_extend_increment
);
sys_var_long_ptr
sys_innodb_max_purge_lag
(
"innodb_max_purge_lag"
,
&
srv_max_purge_lag
);
#endif
/* Time/date/datetime formats */
...
...
sql/sql_cache.cc
View file @
5b29f59a
...
...
@@ -1037,9 +1037,9 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
*/
for
(
tmptable
=
thd
->
temporary_tables
;
tmptable
;
tmptable
=
tmptable
->
next
)
{
if
(
tmptable
->
key_length
-
TMP_TABLE_KEY_EXTRA
==
table
->
key_len
()
&&
if
(
tmptable
->
key_length
-
TMP_TABLE_KEY_EXTRA
==
table
->
key_len
gth
()
&&
!
memcmp
(
tmptable
->
table_cache_key
,
table
->
data
(),
table
->
key_len
()))
table
->
key_len
gth
()))
{
DBUG_PRINT
(
"qcache"
,
(
"Temporary table detected: '%s.%s'"
,
...
...
@@ -1050,7 +1050,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
temporary tables => assign following variable to make check
faster.
*/
thd
->
safe_to_cache_query
=
0
;
thd
->
lex
->
safe_to_cache_query
=
0
;
BLOCK_UNLOCK_RD
(
query_block
);
DBUG_RETURN
(
-
1
);
}
...
...
sql/sql_insert.cc
View file @
5b29f59a
...
...
@@ -1681,9 +1681,10 @@ bool select_create::send_eof()
*/
if
(
!
table
->
tmp_table
)
{
ulong
version
=
table
->
version
;
hash_delete
(
&
open_cache
,(
byte
*
)
table
);
/* Tell threads waiting for refresh that something has happened */
if
(
table
->
version
!=
refresh_version
)
if
(
version
!=
refresh_version
)
VOID
(
pthread_cond_broadcast
(
&
COND_refresh
));
}
lock
=
0
;
...
...
@@ -1707,11 +1708,12 @@ void select_create::abort()
enum
db_type
table_type
=
table
->
db_type
;
if
(
!
table
->
tmp_table
)
{
ulong
version
=
table
->
version
;
hash_delete
(
&
open_cache
,(
byte
*
)
table
);
if
(
!
create_info
->
table_existed
)
quick_rm_table
(
table_type
,
db
,
name
);
/* Tell threads waiting for refresh that something has happened */
if
(
table
->
version
!=
refresh_version
)
if
(
version
!=
refresh_version
)
VOID
(
pthread_cond_broadcast
(
&
COND_refresh
));
}
else
if
(
!
create_info
->
table_existed
)
...
...
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