diff options
author | Alexey Yurchenko <ayurchen@gmail.com> | 2015-06-08 21:06:22 +0300 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-09-09 17:03:31 -0400 |
commit | d809fcc3011c8fa8cfd62aa6232f45469a829611 (patch) | |
tree | 32aa77aca82e28f2f08a38b4e7b5d271f44eb25b /sql/wsrep_sst.cc | |
parent | 1b1410c449c651739590dba3d61ea5494c149ed3 (diff) | |
download | mariadb-git-d809fcc3011c8fa8cfd62aa6232f45469a829611.tar.gz |
This commit fixes
- errno handling in wsp::env::append() method, where error could be returned by mistake
- return code of sst_prepare_other() when pthread_create() fails - it was returning positive error code which by convention is treated as success.
Diffstat (limited to 'sql/wsrep_sst.cc')
-rw-r--r-- | sql/wsrep_sst.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/wsrep_sst.cc b/sql/wsrep_sst.cc index 5e1a4973c2a..dd6f169eb48 100644 --- a/sql/wsrep_sst.cc +++ b/sql/wsrep_sst.cc @@ -1,4 +1,4 @@ -/* Copyright 2008-2012 Codership Oy <http://www.codership.com> +/* Copyright 2008-2015 Codership Oy <http://www.codership.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -485,7 +485,7 @@ static ssize_t sst_prepare_other (const char* method, { WSREP_ERROR("sst_prepare_other(): pthread_create() failed: %d (%s)", ret, strerror(ret)); - return ret; + return -ret; } mysql_cond_wait (&arg.cond, &arg.lock); |