Permalink
Browse files

Reset error code on retry attempt. Fixes issue #15

  • Loading branch information...
iliaal committed Nov 3, 2012
1 parent 1162d10 commit 817a9d5682e42043e1b5acc612458c791be845b9
Showing with 1 addition and 0 deletions.
  1. +1 −0 php_memcached.c
View
@@ -1173,6 +1173,7 @@ PHP_METHOD(Memcached, setMultiByKey)
case MEMCACHED_SERVER_MARKED_DEAD: \
if (memcached_server_count(m_obj->memc) > 0) { \
retry++; \
+ i_obj->rescode = 0; \
goto retry; \
} \
break; \

0 comments on commit 817a9d5

Please sign in to comment.