gearman_connection_clone returns empty connections every type

Bug #531481 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
Fix Released
High
Eric Day

Bug Description

Whenever the function gearman_connection_clone() is used, an empty new connection is returned instead of a cloned version of the 'from' parameter.

This code in libgearman/connection.c seems to be the culprit:

  if (from || connection == NULL)
    return connection;

I believe the intended line should be

  if (!from || connection == NULL)
    return connection;

To indicate that we should return a new connection if a null was passed in.

Related branches

Revision history for this message
Clint Byrum (clint-fewbar) wrote :
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Oops, I failed to mention, this manifests itself in the MySQL UDF's not working properly with libgearman 0.12

Eric Day (eday)
Changed in gearmand:
assignee: nobody → Eric Day (eday)
status: New → Fix Committed
importance: Undecided → High
milestone: none → 0.13
Eric Day (eday)
Changed in gearmand:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.