Changeset b1cbae
- Timestamp:
- 03/12/08 14:40:30 (4 years ago)
- 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)
- Location:
- src
- Files:
-
- 3 edited
-
client.c (modified) (3 diffs)
-
dispatch_key.c (modified) (1 diff)
-
dispatch_key.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/client.c
ra0b8bf rb1cbae 27 27 #include "parse_keyword.h" 28 28 #include "dispatch_key.h" 29 #include "compute_crc32.h"30 29 #include <stdlib.h> 31 30 #include <unistd.h> … … 505 504 506 505 if (c->hash_namespace) 507 dispatch_set_prefix _crc32(&c->dispatch, 0x0U);506 dispatch_set_prefix(&c->dispatch, "", 0); 508 507 509 508 return MEMCACHED_SUCCESS; … … 524 523 525 524 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); 527 526 528 527 return MEMCACHED_SUCCESS; -
src/dispatch_key.c
r399607 rb1cbae 262 262 263 263 void 264 dispatch_set_prefix_crc32(struct dispatch_state *state, unsigned int crc32) 265 { 266 state->prefix_crc32 = crc32; 264 dispatch_set_prefix(struct dispatch_state *state, 265 const char *prefix, size_t prefix_len) 266 { 267 state->prefix_crc32 = compute_crc32(prefix, prefix_len); 267 268 } 268 269 -
src/dispatch_key.h
ra57c5d rb1cbae 52 52 extern 53 53 void 54 dispatch_set_prefix_crc32(struct dispatch_state *state, unsigned int crc32); 54 dispatch_set_prefix(struct dispatch_state *state, 55 const char *prefix, size_t prefix_len); 55 56 56 57 extern
Note: See TracChangeset
for help on using the changeset viewer.
