~kent/libmemcached/KBDocs4

« back to all changes in this revision

Viewing changes to libmemcached/hash.c

  • Committer: Brian Aker
  • Date: 2011-03-25 00:48:22 UTC
  • mfrom: (928.1.4 libmemcached-trunk)
  • Revision ID: brian@tangent.org-20110325004822-71q9m50jhq1bvugx
Merge fixes from build.

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 EXIT_SUCCESS;
 
73
    return 0;
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 EXIT_SUCCESS;
 
81
      return 0;
82
82
 
83
83
    strncpy(temp, ptr->prefix_key, ptr->prefix_key_length);
84
84
    strncpy(temp + ptr->prefix_key_length, key, key_length);