Skip to content

Commit

Permalink
Fixed LF_BACKOFF calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Vojtovich committed Dec 8, 2017
1 parent 3945049 commit 927dd9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sql/sql_class.cc
Expand Up @@ -5560,7 +5560,7 @@ class XID_cache_element
MY_MEMORY_ORDER_RELAXED))
{
old&= ACQUIRED | RECOVERED;
(void) LF_BACKOFF;
(void) LF_BACKOFF();
}
}
bool acquire_recovered()
Expand All @@ -5573,7 +5573,7 @@ class XID_cache_element
if (!(old & RECOVERED) || (old & ACQUIRED))
return false;
old= RECOVERED;
(void) LF_BACKOFF;
(void) LF_BACKOFF();
}
return true;
}
Expand Down
8 changes: 4 additions & 4 deletions storage/maria/lockman.c
Expand Up @@ -268,7 +268,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node,
do {
cursor->curr= PTR(*cursor->prev);
lf_pin(pins, 1, cursor->curr);
} while(*cursor->prev != (intptr)cursor->curr && LF_BACKOFF);
} while(*cursor->prev != (intptr)cursor->curr && LF_BACKOFF());
for (;;)
{
if (!cursor->curr)
Expand All @@ -277,15 +277,15 @@ static int lockfind(LOCK * volatile *head, LOCK *node,
cur_link= cursor->curr->link;
cursor->next= PTR(cur_link);
lf_pin(pins, 0, cursor->next);
} while (cur_link != cursor->curr->link && LF_BACKOFF);
} while (cur_link != cursor->curr->link && LF_BACKOFF());
cur_hashnr= cursor->curr->hashnr;
cur_resource= cursor->curr->resource;
cur_lock= cursor->curr->lock;
cur_loid= cursor->curr->loid;
cur_flags= cursor->curr->flags;
if (*cursor->prev != (intptr)cursor->curr)
{
(void)LF_BACKOFF;
(void)LF_BACKOFF();
goto retry;
}
if (!DELETED(cur_link))
Expand Down Expand Up @@ -362,7 +362,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node,
lf_alloc_free(pins, cursor->curr);
else
{
(void)LF_BACKOFF;
(void)LF_BACKOFF();
goto retry;
}
}
Expand Down

0 comments on commit 927dd9f

Please sign in to comment.