rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
return 0;
}
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
memcached_quit(memc);
rc= memcached_add(memc, key, strlen(key),
value, strlen(value),
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
rc= memcached_delete(memc, key, strlen(key), (time_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
return 0;
}
uint32_t flags;
rc= memcached_delete(memc, key, strlen(key), (time_t)0);
- assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_NOTFOUND);
+ assert(rc == MEMCACHED_BUFFERED || rc == MEMCACHED_NOTFOUND);
string= memcached_get(memc, key, strlen(key),
&string_length, &flags, &rc);
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
string= memcached_get(memc, key, strlen(key),
&string_length, &flags, &rc);
rc= memcached_set(memc, key, strlen(key),
value, value_length,
(time_t)0, (uint32_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
}
return 0;
rc= memcached_set(memc, key, strlen(key),
value, value_length,
(time_t)0, (uint32_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
}
free(value);
rc= memcached_set(memc, key, strlen(key),
value, value_length,
(time_t)0, (uint32_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
string= memcached_get(memc, key, strlen(key),
&string_length, &flags, &rc);
rc= memcached_set(memc, key, strlen(key),
value, value_length,
(time_t)0, (uint32_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
for (x= 0; x < 10; x++)
{
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
rc= memcached_increment(memc, key, strlen(key),
1, &new_number);
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
rc= memcached_decrement(memc, key, strlen(key),
1, &new_number);
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)10, (uint32_t)3);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
memcached_quit(memc);
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)50, (uint32_t)9);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
return 0;
}
rc= memcached_set(memc, keys[x], key_length[x],
keys[x], key_length[x],
(time_t)50, (uint32_t)9);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
}
rc= memcached_mget(memc, keys, key_length, 3);
rc= memcached_set(memc, keys[x], key_length[x],
keys[x], key_length[x],
(time_t)50, (uint32_t)9);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
}
rc= memcached_mget(memc, keys, key_length, 3);
rc= memcached_set(memc, keys[x], key_length[x],
keys[x], key_length[x],
(time_t)50, (uint32_t)9);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
}
rc= memcached_mget(memc, keys, key_length, 3);
rc= memcached_set(memc, keys[x], key_length[x],
keys[x], key_length[x],
(time_t)50, (uint32_t)9);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
}
rc= memcached_mget(memc, keys, key_length, 3);
rc = memcached_set(memc, key, strlen(key),
randomstuff, strlen(randomstuff), 10, 0);
/* If we fail, lets try again */
- if (rc != MEMCACHED_SUCCESS)
+ if (rc != MEMCACHED_SUCCESS && rc != MEMCACHED_BUFFERED)
rc = memcached_set(memc, key, strlen(key),
randomstuff, strlen(randomstuff), 10, 0);
- assert(rc == MEMCACHED_SUCCESS);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
}
return 0;
{
rc= memcached_set(mclone, key, key_len,value, value_length, 0, 0);
- assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_WRITE_FAILURE);
+ assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_WRITE_FAILURE || rc == MEMCACHED_BUFFERED);
if (rc == MEMCACHED_WRITE_FAILURE)
x--;
rc= memcached_set(mclone, key, key_len,value, value_length, 0, 0);
WATCHPOINT_IFERROR(rc);
- //assert(rc == MEMCACHED_SUCCESS);
}
free(value);