[Bugs] [Bug 1330225] New: gluster is not using pthread_equal to compare thread

bugzilla at redhat.com bugzilla at redhat.com
Mon Apr 25 16:36:05 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1330225

            Bug ID: 1330225
           Summary: gluster is not using pthread_equal to compare thread
           Product: GlusterFS
           Version: mainline
         Component: posix
          Assignee: bugs at gluster.org
          Reporter: mscherer at redhat.com
                CC: bugs at gluster.org



In libglusterfs/src/syncop.c, there is this line:

  if (pthread_self () == lock->owner_tid) {

according to man pages, this is incorrect, since pthread_id is supposed to be a
opaque structure, and cannot be compared with '='. I will send a patch to fix
that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list