diff options
author | Alfranio Correia <alfranio.correia@sun.com> | 2009-12-17 00:09:52 +0000 |
---|---|---|
committer | Alfranio Correia <alfranio.correia@sun.com> | 2009-12-17 00:09:52 +0000 |
commit | 9a51ad2c541d6fe93b82a09d334278dd1170e780 (patch) | |
tree | e7d2073fc03c4d483a2006572c2db6a9fdee7ec1 /sql/repl_failsafe.cc | |
parent | 25ecb311168dba7cdb5a07713743d5baf595a93c (diff) | |
parent | 8dc0091c214271fbcbe4ae9a0b0d6de5c78fae6e (diff) | |
download | mariadb-git-9a51ad2c541d6fe93b82a09d334278dd1170e780.tar.gz |
merging from 5.1 to rep+2 starting at gca(5.1, next-mr) == build@mysql.com-20091208092611-pbno5awyb0v38hs7
Fixed conflicts in:
- binlog.binlog_unsafe
- rpl.rpl_slow_query_log
Diffstat (limited to 'sql/repl_failsafe.cc')
-rw-r--r-- | sql/repl_failsafe.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc index cbc22406460..8a8403d1725 100644 --- a/sql/repl_failsafe.cc +++ b/sql/repl_failsafe.cc @@ -558,7 +558,12 @@ HOSTS"; goto err; } si->server_id = log_server_id; - my_hash_insert(&slave_list, (uchar*)si); + if (my_hash_insert(&slave_list, (uchar*)si)) + { + error= "the slave is out of memory"; + pthread_mutex_unlock(&LOCK_slave_list); + goto err; + } } strmake(si->host, row[1], sizeof(si->host)-1); si->port = atoi(row[port_ind]); |