Skip to content

Commit 0b3765a

Browse files
committed
Check for MEMCACHED_DATA_EXISTS also when setting lock.
1 parent 1736623 commit 0b3765a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_memcached_session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static int php_memc_sess_lock(memcached_st *memc, const char *key TSRMLS_DC)
7373
MEMC_G(sess_lock_key) = lock_key;
7474
MEMC_G(sess_lock_key_len) = lock_key_len;
7575
return 0;
76-
} else if (status != MEMCACHED_NOTSTORED) {
76+
} else if (status != MEMCACHED_NOTSTORED && status != MEMCACHED_DATA_EXISTS) {
7777
break;
7878
}
7979

0 commit comments

Comments
 (0)