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
2df44dff
Commit
2df44dff
authored
Jun 15, 2004
by
paul@ice.snake.net
Browse files
Options
Browse Files
Download
Plain Diff
Merge paul@bk-internal.mysql.com:/home/bk/mysql-4.1
into ice.snake.net:/Volumes/ice2/MySQL/bk/mysql-4.1
parents
fd1d01e0
6d197336
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
innobase/fil/fil0fil.c
innobase/fil/fil0fil.c
+2
-4
innobase/row/row0ins.c
innobase/row/row0ins.c
+18
-16
No files found.
innobase/fil/fil0fil.c
View file @
2df44dff
...
...
@@ -2220,6 +2220,7 @@ fil_create_new_single_table_tablespace(
ut_free
(
buf2
);
error_exit:
os_file_close
(
file
);
error_exit2:
os_file_delete
(
path
);
mem_free
(
path
);
...
...
@@ -2262,10 +2263,7 @@ fil_create_new_single_table_tablespace(
os_file_close
(
file
);
if
(
*
space_id
==
ULINT_UNDEFINED
)
{
os_file_delete
(
path
);
error_exit2:
mem_free
(
path
);
return
(
DB_ERROR
);
goto
error_exit2
;
}
success
=
fil_space_create
(
path
,
*
space_id
,
FIL_TABLESPACE
);
...
...
innobase/row/row0ins.c
View file @
2df44dff
...
...
@@ -42,14 +42,13 @@ extern
void
innobase_invalidate_query_cache
(
/*============================*/
trx_t
*
trx
,
/* in: transaction which modifies
the table */
const
char
*
full_name
,
/* in: concatenation of database name,
null char '\0', table name, null char
'\0'; NOTE that in Windows this is
always in LOWER CASE! */
ulint
full_name_len
);
/* in: full name length where also the
null chars count */
trx_t
*
trx
,
/* in: transaction which modifies the table */
char
*
full_name
,
/* in: concatenation of database name, null
char '\0', table name, null char'\0';
NOTE that in Windows this is always
in LOWER CASE! */
ulint
full_name_len
);
/* in: full name length where also the null
chars count */
/*************************************************************************
...
...
@@ -652,24 +651,27 @@ row_ins_foreign_check_on_constraint(
ulint
n_to_update
;
ulint
err
;
ulint
i
;
c
onst
char
*
ptr
;
char
*
table_name
;
c
har
*
ptr
;
char
*
table_name
_buf
;
ut_a
(
thr
&&
foreign
&&
pcur
&&
mtr
);
#ifndef UNIV_HOTBACKUP
/* Since we are going to delete or update a row, we have to invalidate
the MySQL query cache for table */
ptr
=
strchr
(
table
->
name
,
'/'
);
table_name_buf
=
mem_strdup
(
table
->
name
);
ptr
=
strchr
(
table_name_buf
,
'/'
);
ut_a
(
ptr
);
table_name
=
mem_strdupl
(
table
->
name
,
ptr
-
table
->
name
)
;
*
ptr
=
'\0'
;
#ifndef UNIV_HOTBACKUP
/* We call a function in ha_innodb.cc */
innobase_invalidate_query_cache
(
thr_get_trx
(
thr
),
table_name
,
ptr
-
table
->
name
+
1
);
mem_free
(
table_name
);
innobase_invalidate_query_cache
(
thr_get_trx
(
thr
),
table_name_buf
,
strlen
(
table
->
name
)
+
1
);
#endif
mem_free
(
table_name_buf
);
node
=
thr
->
run_node
;
if
(
node
->
is_delete
&&
0
==
(
foreign
->
type
&
...
...
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