strange check in \libmemcached\virtual_bucket.c

Bug #1215783 reported by Макс Наумов on 2013-08-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
Low
Brian Aker

Bug Description

uint32_t memcached_virtual_bucket_get(const memcached_st *self, uint32_t digest)
{
  if (self)
  {
    if (self->virtual_bucket) <=======
    {
      if (self->virtual_bucket) <=======
      {
        uint32_t result= (uint32_t) (digest & (self->virtual_bucket->size -1));
        return self->virtual_bucket->buckets[result].master;
      }

      return (uint32_t) (digest & (self->number_of_hosts -1));
    }
  }

Related branches

Brian Aker (brianaker) on 2014-02-01
Changed in libmemcached:
milestone: none → 1.0.18
assignee: nobody → Brian Aker (brianaker)
importance: Undecided → Low
status: New → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers