Changeset 272c52


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

Fix hash_namespace: it should be enabled before we set the namespace.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Fast.xs

    rb7662a r272c52  
    215215    } 
    216216 
     217  ps = hv_fetch(conf, "hash_namespace", 14, 0); 
     218  if (ps && SvOK(*ps)) 
     219    client_set_hash_namespace(c, SvTRUE(*ps)); 
     220 
    217221  ps = hv_fetch(conf, "servers", 7, 0); 
    218222  if (ps && SvOK(*ps)) 
     
    273277  if (ps && SvOK(*ps)) 
    274278    client_set_nowait(c, SvTRUE(*ps)); 
    275  
    276   ps = hv_fetch(conf, "hash_namespace", 14, 0); 
    277   if (ps && SvOK(*ps)) 
    278     client_set_hash_namespace(c, SvTRUE(*ps)); 
    279279 
    280280  parse_compress(memd, conf); 
  • src/client.h

    ra57c5d r272c52  
    104104client_set_ketama_points(struct client *c, int ketama_points); 
    105105 
     106/* 
     107  client_set_hash_namespace() should be called before setting the 
     108  namespace. 
     109*/ 
     110extern 
     111void 
     112client_set_hash_namespace(struct client *c, int enable); 
     113 
    106114extern 
    107115int 
     
    141149void 
    142150client_set_nowait(struct client *c, int enable); 
    143  
    144 extern 
    145 void 
    146 client_set_hash_namespace(struct client *c, int enable); 
    147151 
    148152extern 
Note: See TracChangeset for help on using the changeset viewer.