Logic inversion on CAS() operation.

This commit is contained in:
Gregory Burd 2013-06-10 16:18:55 -04:00
parent 2a4b8ee7d2
commit 8ea866bf20

View file

@ -348,7 +348,7 @@ __retain_ctx(WterlConnHandle *conn_handle, uint32_t worker_id,
do {
c = conn_handle->mru_ctx[worker_id];
if (CASPO(&conn_handle->mru_ctx[worker_id], c, NULL) != c) {
if (CASPO(&conn_handle->mru_ctx[worker_id], c, NULL) == c) {
if (c == NULL) {
// mru miss:
*ctx = NULL;