From: Brian Aker Date: Sat, 5 Jan 2008 08:54:50 +0000 (-0800) Subject: Fix for bad error in execute. X-Git-Tag: 0.13~12 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e4dbb63d6df3b1d756c863c502cb4d33cc49cb18;p=awesomized%2Flibmemcached Fix for bad error in execute. Hard flushes in generate tests. --- diff --git a/src/execute.c b/src/execute.c index 69b106d2..e623825c 100644 --- a/src/execute.c +++ b/src/execute.c @@ -17,7 +17,7 @@ unsigned int execute_set(memcached_st *memc, pairs_st *pairs, unsigned int numbe rc= memcached_set(memc, pairs[x].key, pairs[x].key_length, pairs[x].value, pairs[x].value_length, 0, 0); - if (rc != MEMCACHED_SUCCESS) + if (rc != MEMCACHED_SUCCESS && rc != MEMCACHED_BUFFERED) fprintf(stderr, "Failured on insert of %.*s\n", (unsigned int)pairs[x].key_length, pairs[x].key); else diff --git a/tests/function.c b/tests/function.c index 46005ce7..62331226 100644 --- a/tests/function.c +++ b/tests/function.c @@ -2139,17 +2139,17 @@ test_st user_tests[] ={ }; test_st generate_tests[] ={ - {"generate_data", 0, generate_data }, + {"generate_data", 1, generate_data }, {"get_read", 0, get_read }, {"delete_generate", 0, delete_generate }, - {"generate_buffer_data", 0, generate_buffer_data }, + {"generate_buffer_data", 1, generate_buffer_data }, {"delete_buffer", 0, delete_buffer_generate}, - {"generate_data", 0, generate_data }, + {"generate_data", 1, generate_data }, {"mget_read", 0, mget_read }, {"mget_read_result", 0, mget_read_result }, {"mget_read_function", 0, mget_read_function }, {"mdelete_generate", 0, mdelete_generate }, - {"cleanup", 0, cleanup_pairs }, + {"cleanup", 1, cleanup_pairs }, {0, 0, 0} };