~yeban/libmemcached/todo-hosts.c-2

« back to all changes in this revision

Viewing changes to libmemcached/hash.c

  • Committer: Brian Aker
  • Date: 2011-03-17 21:45:08 UTC
  • Revision ID: brian@tangent.org-20110317214508-ogufz6pusakvcch0
Merge in updates to make sure exit/return is done properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
  WATCHPOINT_ASSERT(memcached_server_count(ptr));
71
71
 
72
72
  if (memcached_server_count(ptr) == 1)
73
 
    return 0;
 
73
    return EXIT_SUCCESS;
74
74
 
75
75
  if (ptr->flags.hash_with_prefix_key)
76
76
  {
78
78
    char temp[temp_length];
79
79
 
80
80
    if (temp_length > MEMCACHED_MAX_KEY -1)
81
 
      return 0;
 
81
      return EXIT_SUCCESS;
82
82
 
83
83
    strncpy(temp, ptr->prefix_key, ptr->prefix_key_length);
84
84
    strncpy(temp + ptr->prefix_key_length, key, key_length);