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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c46ce32c
Commit
c46ce32c
authored
Jun 20, 2013
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed memory leaks. alias.test now runs clean with valgrind
parent
f62f4bd5
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
12 deletions
+13
-12
sql/sp_pcontext.h
sql/sp_pcontext.h
+1
-1
sql/sql_array.h
sql/sql_array.h
+3
-1
sql/sql_insert.cc
sql/sql_insert.cc
+1
-2
storage/perfschema/pfs_account.cc
storage/perfschema/pfs_account.cc
+1
-1
storage/perfschema/pfs_digest.cc
storage/perfschema/pfs_digest.cc
+1
-1
storage/perfschema/pfs_host.cc
storage/perfschema/pfs_host.cc
+1
-1
storage/perfschema/pfs_instr.cc
storage/perfschema/pfs_instr.cc
+1
-1
storage/perfschema/pfs_instr_class.cc
storage/perfschema/pfs_instr_class.cc
+1
-1
storage/perfschema/pfs_setup_actor.cc
storage/perfschema/pfs_setup_actor.cc
+1
-1
storage/perfschema/pfs_setup_object.cc
storage/perfschema/pfs_setup_object.cc
+1
-1
storage/perfschema/pfs_user.cc
storage/perfschema/pfs_user.cc
+1
-1
No files found.
sql/sp_pcontext.h
View file @
c46ce32c
...
...
@@ -238,7 +238,7 @@ public:
/// The class represents parse-time context, which keeps track of declared
/// variables/parameters, conditions, handlers, cursors and labels.
///
/// sp_context objects are organized in a tree according to the following
/// sp_
p
context objects are organized in a tree according to the following
/// rules:
/// - one sp_pcontext object corresponds for for each BEGIN..END block;
/// - one sp_pcontext object corresponds for each exception handler;
...
...
sql/sql_array.h
View file @
c46ce32c
...
...
@@ -92,6 +92,8 @@ private:
/*
A typesafe wrapper around DYNAMIC_ARRAY
TODO: Change creator to take a THREAD_SPECIFIC option.
*/
template
<
class
Elem
>
class
Dynamic_array
...
...
@@ -106,7 +108,7 @@ public:
void
init
(
uint
prealloc
=
16
,
uint
increment
=
16
)
{
my_init_dynamic_array
(
&
array
,
sizeof
(
Elem
),
prealloc
,
increment
,
MYF
(
MY_THREAD_SPECIFIC
));
MYF
(
0
));
}
/**
...
...
sql/sql_insert.cc
View file @
c46ce32c
...
...
@@ -3914,8 +3914,7 @@ static TABLE *create_table_from_items(THD *thd, HA_CREATE_INFO *create_info,
}
else
{
Open_table_context
ot_ctx
(
thd
,
MYSQL_OPEN_TEMPORARY_ONLY
);
if
(
open_table
(
thd
,
create_table
,
thd
->
mem_root
,
&
ot_ctx
))
if
(
open_temporary_table
(
thd
,
create_table
))
{
/*
This shouldn't happen as creation of temporary table should make
...
...
storage/perfschema/pfs_account.cc
View file @
c46ce32c
...
...
@@ -153,7 +153,7 @@ int init_account_hash(void)
{
lf_hash_init
(
&
account_hash
,
sizeof
(
PFS_account
*
),
LF_HASH_UNIQUE
,
0
,
0
,
account_hash_get_key
,
&
my_charset_bin
);
account_hash
.
size
=
account_max
;
/* account_hash.size= account_max; */
account_hash_inited
=
true
;
}
return
0
;
...
...
storage/perfschema/pfs_digest.cc
View file @
c46ce32c
...
...
@@ -142,7 +142,7 @@ int init_digest_hash(void)
lf_hash_init
(
&
digest_hash
,
sizeof
(
PFS_statements_digest_stat
*
),
LF_HASH_UNIQUE
,
0
,
0
,
digest_hash_get_key
,
&
my_charset_bin
);
digest_hash
.
size
=
digest_max
;
/* digest_hash.size= digest_max; */
digest_hash_inited
=
true
;
}
return
0
;
...
...
storage/perfschema/pfs_host.cc
View file @
c46ce32c
...
...
@@ -150,7 +150,7 @@ int init_host_hash(void)
{
lf_hash_init
(
&
host_hash
,
sizeof
(
PFS_host
*
),
LF_HASH_UNIQUE
,
0
,
0
,
host_hash_get_key
,
&
my_charset_bin
);
host_hash
.
size
=
host_max
;
/* host_hash.size= host_max; */
host_hash_inited
=
true
;
}
return
0
;
...
...
storage/perfschema/pfs_instr.cc
View file @
c46ce32c
...
...
@@ -515,7 +515,7 @@ int init_file_hash(void)
{
lf_hash_init
(
&
filename_hash
,
sizeof
(
PFS_file
*
),
LF_HASH_UNIQUE
,
0
,
0
,
filename_hash_get_key
,
&
my_charset_bin
);
filename_hash
.
size
=
file_max
;
/* filename_hash.size= file_max; */
filename_hash_inited
=
true
;
}
DBUG_RETURN
(
0
);
...
...
storage/perfschema/pfs_instr_class.cc
View file @
c46ce32c
...
...
@@ -385,7 +385,7 @@ int init_table_share_hash(void)
{
lf_hash_init
(
&
table_share_hash
,
sizeof
(
PFS_table_share
*
),
LF_HASH_UNIQUE
,
0
,
0
,
table_share_hash_get_key
,
&
my_charset_bin
);
table_share_hash
.
size
=
table_share_max
;
/* table_share_hash.size= table_share_max; */
table_share_hash_inited
=
true
;
}
return
0
;
...
...
storage/perfschema/pfs_setup_actor.cc
View file @
c46ce32c
...
...
@@ -104,7 +104,7 @@ int init_setup_actor_hash(void)
{
lf_hash_init
(
&
setup_actor_hash
,
sizeof
(
PFS_setup_actor
*
),
LF_HASH_UNIQUE
,
0
,
0
,
setup_actor_hash_get_key
,
&
my_charset_bin
);
setup_actor_hash
.
size
=
setup_actor_max
;
/* setup_actor_hash.size= setup_actor_max; */
setup_actor_hash_inited
=
true
;
}
return
0
;
...
...
storage/perfschema/pfs_setup_object.cc
View file @
c46ce32c
...
...
@@ -99,7 +99,7 @@ int init_setup_object_hash(void)
{
lf_hash_init
(
&
setup_object_hash
,
sizeof
(
PFS_setup_object
*
),
LF_HASH_UNIQUE
,
0
,
0
,
setup_object_hash_get_key
,
&
my_charset_bin
);
setup_object_hash
.
size
=
setup_object_max
;
/* setup_object_hash.size= setup_object_max; */
setup_object_hash_inited
=
true
;
}
return
0
;
...
...
storage/perfschema/pfs_user.cc
View file @
c46ce32c
...
...
@@ -150,7 +150,7 @@ int init_user_hash(void)
{
lf_hash_init
(
&
user_hash
,
sizeof
(
PFS_user
*
),
LF_HASH_UNIQUE
,
0
,
0
,
user_hash_get_key
,
&
my_charset_bin
);
user_hash
.
size
=
user_max
;
/* user_hash.size= user_max; */
user_hash_inited
=
true
;
}
return
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