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
ebe57fc7
Commit
ebe57fc7
authored
Jun 23, 2006
by
monty@hasky.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge monty@192.168.0.9:/my/mysql-5.1
into mysql.com:/home/my/mysql-5.1
parents
a4f6871d
059c45d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
12 deletions
+25
-12
mysql-test/valgrind.supp
mysql-test/valgrind.supp
+10
-0
sql/handler.cc
sql/handler.cc
+5
-4
sql/log_event.cc
sql/log_event.cc
+10
-8
No files found.
mysql-test/valgrind.supp
View file @
ebe57fc7
...
@@ -446,3 +446,13 @@
...
@@ -446,3 +446,13 @@
fun:ListAdd
fun:ListAdd
fun:_db_set_
fun:_db_set_
}
}
{
dbug initialization by kill_server
Memcheck:Leak
fun:malloc
fun:DbugMalloc
fun:code_state
fun:_db_enter_
fun:kill_server
}
sql/handler.cc
View file @
ebe57fc7
...
@@ -3268,10 +3268,11 @@ namespace
...
@@ -3268,10 +3268,11 @@ namespace
if
(
thd
->
get_binlog_table_maps
()
==
0
)
if
(
thd
->
get_binlog_table_maps
()
==
0
)
{
{
MYSQL_LOCK
*
const
locks
[]
=
{
MYSQL_LOCK
*
locks
[
3
];
thd
->
extra_lock
,
thd
->
lock
,
thd
->
locked_tables
locks
[
0
]
=
thd
->
extra_lock
;
};
locks
[
1
]
=
thd
->
lock
;
for
(
my_ptrdiff_t
i
=
0
;
i
<
sizeof
(
locks
)
/
sizeof
(
*
locks
)
;
++
i
)
locks
[
2
]
=
thd
->
locked_tables
;
for
(
uint
i
=
0
;
i
<
sizeof
(
locks
)
/
sizeof
(
*
locks
)
;
++
i
)
{
{
MYSQL_LOCK
const
*
const
lock
=
locks
[
i
];
MYSQL_LOCK
const
*
const
lock
=
locks
[
i
];
if
(
lock
==
NULL
)
if
(
lock
==
NULL
)
...
...
sql/log_event.cc
View file @
ebe57fc7
...
@@ -5871,7 +5871,7 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli)
...
@@ -5871,7 +5871,7 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli)
table_list
->
db
,
table_list
->
table_name
);
table_list
->
db
,
table_list
->
table_name
);
thd
->
query_error
=
1
;
thd
->
query_error
=
1
;
}
}
DBUG_RETURN
(
error
)
;
goto
err
;
}
}
m_table
=
table_list
->
table
;
m_table
=
table_list
->
table
;
...
@@ -5948,7 +5948,8 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli)
...
@@ -5948,7 +5948,8 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli)
}
}
thd
->
query_error
=
1
;
thd
->
query_error
=
1
;
DBUG_RETURN
(
ERR_BAD_TABLE_DEF
);
error
=
ERR_BAD_TABLE_DEF
;
goto
err
;
}
}
/*
/*
...
@@ -5956,12 +5957,10 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli)
...
@@ -5956,12 +5957,10 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli)
locked by linking the table into the list of tables to lock, and
locked by linking the table into the list of tables to lock, and
tell the RLI that we are touching a table.
tell the RLI that we are touching a table.
*/
*/
if
(
!
error
)
table_list
->
next_global
=
table_list
->
next_local
=
rli
->
tables_to_lock
;
{
rli
->
tables_to_lock
=
table_list
;
table_list
->
next_global
=
table_list
->
next_local
=
rli
->
tables_to_lock
;
rli
->
tables_to_lock_count
++
;
rli
->
tables_to_lock
=
table_list
;
/* 'memory' is freed in clear_tables_to_lock */
rli
->
tables_to_lock_count
++
;
}
}
}
/*
/*
...
@@ -5976,7 +5975,10 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli)
...
@@ -5976,7 +5975,10 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli)
if
(
likely
(
!
error
))
if
(
likely
(
!
error
))
rli
->
inc_event_relay_log_pos
();
rli
->
inc_event_relay_log_pos
();
DBUG_RETURN
(
error
);
err:
my_free
((
gptr
)
memory
,
MYF
(
MY_WME
));
DBUG_RETURN
(
error
);
DBUG_RETURN
(
error
);
}
}
#endif
/* !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION) */
#endif
/* !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION) */
...
...
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