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
44da95e5
Commit
44da95e5
authored
Dec 19, 2016
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.0' into 10.1
parents
8e198336
9f863a15
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
storage/innobase/dict/dict0dict.cc
storage/innobase/dict/dict0dict.cc
+4
-4
storage/innobase/dict/dict0load.cc
storage/innobase/dict/dict0load.cc
+1
-1
storage/xtradb/dict/dict0dict.cc
storage/xtradb/dict/dict0dict.cc
+4
-4
storage/xtradb/dict/dict0load.cc
storage/xtradb/dict/dict0load.cc
+1
-1
No files found.
storage/innobase/dict/dict0dict.cc
View file @
44da95e5
...
...
@@ -1643,6 +1643,7 @@ struct dict_foreign_remove_partial
if
(
table
!=
NULL
)
{
table
->
referenced_set
.
erase
(
foreign
);
}
dict_foreign_free
(
foreign
);
}
};
...
...
@@ -3593,8 +3594,7 @@ dict_foreign_add_to_cache(
}
if
(
for_in_cache
)
{
/* Free the foreign object */
mem_heap_free
(
foreign
->
heap
);
dict_foreign_free
(
foreign
);
}
else
{
for_in_cache
=
foreign
;
}
...
...
@@ -3622,7 +3622,7 @@ dict_foreign_add_to_cache(
" the ones in table."
);
if
(
for_in_cache
==
foreign
)
{
mem_heap_free
(
foreign
->
heap
);
dict_foreign_free
(
foreign
);
}
return
(
DB_CANNOT_ADD_CONSTRAINT
);
...
...
@@ -3678,7 +3678,7 @@ dict_foreign_add_to_cache(
be one */
}
mem_heap_free
(
foreign
->
heap
);
dict_foreign_free
(
foreign
);
}
return
(
DB_CANNOT_ADD_CONSTRAINT
);
...
...
storage/innobase/dict/dict0load.cc
View file @
44da95e5
...
...
@@ -490,7 +490,7 @@ dict_process_sys_foreign_rec(
}
/* This recieves a dict_foreign_t* that points to a stack variable.
So
mem_heap_free(foreign->heap
) is not used as elsewhere.
So
dict_foreign_free(foreign
) is not used as elsewhere.
Since the heap used here is freed elsewhere, foreign->heap
is not assigned. */
foreign
->
id
=
mem_heap_strdupl
(
heap
,
(
const
char
*
)
field
,
len
);
...
...
storage/xtradb/dict/dict0dict.cc
View file @
44da95e5
...
...
@@ -1643,6 +1643,7 @@ struct dict_foreign_remove_partial
if
(
table
!=
NULL
)
{
table
->
referenced_set
.
erase
(
foreign
);
}
dict_foreign_free
(
foreign
);
}
};
...
...
@@ -3597,8 +3598,7 @@ dict_foreign_add_to_cache(
}
if
(
for_in_cache
)
{
/* Free the foreign object */
mem_heap_free
(
foreign
->
heap
);
dict_foreign_free
(
foreign
);
}
else
{
for_in_cache
=
foreign
;
}
...
...
@@ -3622,7 +3622,7 @@ dict_foreign_add_to_cache(
" the ones in table."
);
if
(
for_in_cache
==
foreign
)
{
mem_heap_free
(
foreign
->
heap
);
dict_foreign_free
(
foreign
);
}
return
(
DB_CANNOT_ADD_CONSTRAINT
);
...
...
@@ -3678,7 +3678,7 @@ dict_foreign_add_to_cache(
be one */
}
mem_heap_free
(
foreign
->
heap
);
dict_foreign_free
(
foreign
);
}
return
(
DB_CANNOT_ADD_CONSTRAINT
);
...
...
storage/xtradb/dict/dict0load.cc
View file @
44da95e5
...
...
@@ -492,7 +492,7 @@ dict_process_sys_foreign_rec(
}
/* This recieves a dict_foreign_t* that points to a stack variable.
So
mem_heap_free(foreign->heap
) is not used as elsewhere.
So
dict_foreign_free(foreign
) is not used as elsewhere.
Since the heap used here is freed elsewhere, foreign->heap
is not assigned. */
foreign
->
id
=
mem_heap_strdupl
(
heap
,
(
const
char
*
)
field
,
len
);
...
...
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