Commit 927dd9f3 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Fixed LF_BACKOFF calls

parent 39450498
...@@ -5560,7 +5560,7 @@ class XID_cache_element ...@@ -5560,7 +5560,7 @@ class XID_cache_element
MY_MEMORY_ORDER_RELAXED)) MY_MEMORY_ORDER_RELAXED))
{ {
old&= ACQUIRED | RECOVERED; old&= ACQUIRED | RECOVERED;
(void) LF_BACKOFF; (void) LF_BACKOFF();
} }
} }
bool acquire_recovered() bool acquire_recovered()
...@@ -5573,7 +5573,7 @@ class XID_cache_element ...@@ -5573,7 +5573,7 @@ class XID_cache_element
if (!(old & RECOVERED) || (old & ACQUIRED)) if (!(old & RECOVERED) || (old & ACQUIRED))
return false; return false;
old= RECOVERED; old= RECOVERED;
(void) LF_BACKOFF; (void) LF_BACKOFF();
} }
return true; return true;
} }
......
...@@ -268,7 +268,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node, ...@@ -268,7 +268,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node,
do { do {
cursor->curr= PTR(*cursor->prev); cursor->curr= PTR(*cursor->prev);
lf_pin(pins, 1, cursor->curr); lf_pin(pins, 1, cursor->curr);
} while(*cursor->prev != (intptr)cursor->curr && LF_BACKOFF); } while(*cursor->prev != (intptr)cursor->curr && LF_BACKOFF());
for (;;) for (;;)
{ {
if (!cursor->curr) if (!cursor->curr)
...@@ -277,7 +277,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node, ...@@ -277,7 +277,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node,
cur_link= cursor->curr->link; cur_link= cursor->curr->link;
cursor->next= PTR(cur_link); cursor->next= PTR(cur_link);
lf_pin(pins, 0, cursor->next); 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_hashnr= cursor->curr->hashnr;
cur_resource= cursor->curr->resource; cur_resource= cursor->curr->resource;
cur_lock= cursor->curr->lock; cur_lock= cursor->curr->lock;
...@@ -285,7 +285,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node, ...@@ -285,7 +285,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node,
cur_flags= cursor->curr->flags; cur_flags= cursor->curr->flags;
if (*cursor->prev != (intptr)cursor->curr) if (*cursor->prev != (intptr)cursor->curr)
{ {
(void)LF_BACKOFF; (void)LF_BACKOFF();
goto retry; goto retry;
} }
if (!DELETED(cur_link)) if (!DELETED(cur_link))
...@@ -362,7 +362,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node, ...@@ -362,7 +362,7 @@ static int lockfind(LOCK * volatile *head, LOCK *node,
lf_alloc_free(pins, cursor->curr); lf_alloc_free(pins, cursor->curr);
else else
{ {
(void)LF_BACKOFF; (void)LF_BACKOFF();
goto retry; goto retry;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment