Changeset b1cbae


Ignore:
Timestamp:
03/12/08 14:40:30 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master, ketama-compat
Children:
5cbbe9
Parents:
279733d
git-author:
Tomash Brechko <tomash.brechko@…> (03/12/08 13:07:50)
git-committer:
Tomash Brechko <tomash.brechko@…> (03/12/08 14:40:30)
Message:

Change dispatch_set_prefix_crc32() to dispatch_set_prefix().

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/client.c

    ra0b8bf rb1cbae  
    2727#include "parse_keyword.h" 
    2828#include "dispatch_key.h" 
    29 #include "compute_crc32.h" 
    3029#include <stdlib.h> 
    3130#include <unistd.h> 
     
    505504 
    506505      if (c->hash_namespace) 
    507         dispatch_set_prefix_crc32(&c->dispatch, 0x0U); 
     506        dispatch_set_prefix(&c->dispatch, "", 0); 
    508507 
    509508      return MEMCACHED_SUCCESS; 
     
    524523 
    525524  if (c->hash_namespace) 
    526     dispatch_set_prefix_crc32(&c->dispatch, compute_crc32(ns, ns_len)); 
     525    dispatch_set_prefix(&c->dispatch, ns, ns_len); 
    527526 
    528527  return MEMCACHED_SUCCESS; 
  • src/dispatch_key.c

    r399607 rb1cbae  
    262262 
    263263void 
    264 dispatch_set_prefix_crc32(struct dispatch_state *state, unsigned int crc32) 
    265 { 
    266   state->prefix_crc32 = crc32; 
     264dispatch_set_prefix(struct dispatch_state *state, 
     265                    const char *prefix, size_t prefix_len) 
     266{ 
     267  state->prefix_crc32 = compute_crc32(prefix, prefix_len); 
    267268} 
    268269 
  • src/dispatch_key.h

    ra57c5d rb1cbae  
    5252extern 
    5353void 
    54 dispatch_set_prefix_crc32(struct dispatch_state *state, unsigned int crc32); 
     54dispatch_set_prefix(struct dispatch_state *state, 
     55                    const char *prefix, size_t prefix_len); 
    5556 
    5657extern 
Note: See TracChangeset for help on using the changeset viewer.