Logic inversion on CAS() operation.
This commit is contained in:
parent
2a4b8ee7d2
commit
8ea866bf20
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ __retain_ctx(WterlConnHandle *conn_handle, uint32_t worker_id,
|
||||||
|
|
||||||
do {
|
do {
|
||||||
c = conn_handle->mru_ctx[worker_id];
|
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) {
|
if (c == NULL) {
|
||||||
// mru miss:
|
// mru miss:
|
||||||
*ctx = NULL;
|
*ctx = NULL;
|
||||||
|
|
Loading…
Reference in a new issue