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
792f7383
Commit
792f7383
authored
May 08, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #19572 Memory leaks in cluster when running make test
parent
e1430449
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+4
-1
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+6
-2
No files found.
sql/ha_ndbcluster.cc
View file @
792f7383
...
@@ -4431,8 +4431,11 @@ int ha_ndbcluster::create(const char *name,
...
@@ -4431,8 +4431,11 @@ int ha_ndbcluster::create(const char *name,
if
(
readfrm
(
name
,
&
data
,
&
length
))
if
(
readfrm
(
name
,
&
data
,
&
length
))
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
if
(
packfrm
(
data
,
length
,
&
pack_data
,
&
pack_length
))
if
(
packfrm
(
data
,
length
,
&
pack_data
,
&
pack_length
))
{
my_free
((
char
*
)
data
,
MYF
(
0
));
DBUG_RETURN
(
2
);
DBUG_RETURN
(
2
);
}
DBUG_PRINT
(
"info"
,
(
"setFrm data=%lx len=%d"
,
pack_data
,
pack_length
));
DBUG_PRINT
(
"info"
,
(
"setFrm data=%lx len=%d"
,
pack_data
,
pack_length
));
tab
.
setFrm
(
pack_data
,
pack_length
);
tab
.
setFrm
(
pack_data
,
pack_length
);
my_free
((
char
*
)
data
,
MYF
(
0
));
my_free
((
char
*
)
data
,
MYF
(
0
));
...
...
sql/ha_ndbcluster_binlog.cc
View file @
792f7383
...
@@ -255,7 +255,7 @@ ndbcluster_binlog_close_table(THD *thd, NDB_SHARE *share)
...
@@ -255,7 +255,7 @@ ndbcluster_binlog_close_table(THD *thd, NDB_SHARE *share)
DBUG_ENTER
(
"ndbcluster_binlog_close_table"
);
DBUG_ENTER
(
"ndbcluster_binlog_close_table"
);
if
(
share
->
table_share
)
if
(
share
->
table_share
)
{
{
free_table_share
(
share
->
table_share
);
closefrm
(
share
->
table
,
1
);
share
->
table_share
=
0
;
share
->
table_share
=
0
;
share
->
table
=
0
;
share
->
table
=
0
;
}
}
...
@@ -1458,7 +1458,7 @@ ndb_handle_schema_change(THD *thd, Ndb *ndb, NdbEventOperation *pOp,
...
@@ -1458,7 +1458,7 @@ ndb_handle_schema_change(THD *thd, Ndb *ndb, NdbEventOperation *pOp,
{
{
DBUG_ENTER
(
"ndb_handle_schema_change"
);
DBUG_ENTER
(
"ndb_handle_schema_change"
);
TABLE
*
table
=
share
->
table
;
TABLE
*
table
=
share
->
table
;
TABLE_SHARE
*
table_share
=
table
->
s
;
TABLE_SHARE
*
table_share
=
share
->
table_share
;
const
char
*
dbname
=
table_share
->
db
.
str
;
const
char
*
dbname
=
table_share
->
db
.
str
;
const
char
*
tabname
=
table_share
->
table_name
.
str
;
const
char
*
tabname
=
table_share
->
table_name
.
str
;
bool
do_close_cached_tables
=
FALSE
;
bool
do_close_cached_tables
=
FALSE
;
...
@@ -1527,6 +1527,8 @@ ndb_handle_schema_change(THD *thd, Ndb *ndb, NdbEventOperation *pOp,
...
@@ -1527,6 +1527,8 @@ ndb_handle_schema_change(THD *thd, Ndb *ndb, NdbEventOperation *pOp,
old
->
getObjectVersion
()
!=
altered_table
->
getObjectVersion
())
old
->
getObjectVersion
()
!=
altered_table
->
getObjectVersion
())
dict
->
putTable
(
altered_table
);
dict
->
putTable
(
altered_table
);
my_free
((
char
*
)
data
,
MYF
(
MY_ALLOW_ZERO_PTR
));
data
=
NULL
;
if
((
error
=
unpackfrm
(
&
data
,
&
length
,
altered_table
->
getFrmData
()))
||
if
((
error
=
unpackfrm
(
&
data
,
&
length
,
altered_table
->
getFrmData
()))
||
(
error
=
writefrm
(
key
,
data
,
length
)))
(
error
=
writefrm
(
key
,
data
,
length
)))
{
{
...
@@ -1547,6 +1549,8 @@ ndb_handle_schema_change(THD *thd, Ndb *ndb, NdbEventOperation *pOp,
...
@@ -1547,6 +1549,8 @@ ndb_handle_schema_change(THD *thd, Ndb *ndb, NdbEventOperation *pOp,
dbname
,
tabname
);
dbname
,
tabname
);
pthread_mutex_unlock
(
&
LOCK_open
);
pthread_mutex_unlock
(
&
LOCK_open
);
}
}
my_free
((
char
*
)
data
,
MYF
(
MY_ALLOW_ZERO_PTR
));
my_free
((
char
*
)
pack_data
,
MYF
(
MY_ALLOW_ZERO_PTR
));
}
}
// If only frm was changed continue replicating
// If only frm was changed continue replicating
...
...
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