sst_donate_other returns bad error code if pthread_create() fails

Bug #1166060 reported by Teemu Ollakka on 2013-04-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Teemu Ollakka
Percona XtraDB Cluster moved to
Fix Released

Bug Description

wsrep_sst_donate_cb_t definition states that return code should be 0 for success or negative error code. However, if sst_donate_other() fails to create a new thread, positive return code of pthread_create() is returned directly, which causes error to get unnoticed on caller.

Teemu Ollakka (teemu-ollakka) wrote :
Changed in codership-mysql:
status: New → Fix Committed
assignee: nobody → Teemu Ollakka (teemu-ollakka)
milestone: none → 5.5.30-23.7.4
Changed in percona-xtradb-cluster:
milestone: none → 5.5.30-23.7.4
Changed in percona-xtradb-cluster:
status: New → Fix Released
Changed in codership-mysql:
status: Fix Committed → Fix Released

Percona now uses JIRA for bug reports so this bug report is migrated to:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers