strange check in \libmemcached\virtual_bucket.c

Bug #1215783 reported by Макс Наумов
This bug affects 1 person
Affects Status Importance Assigned to Milestone
In Progress
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)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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