mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Merge branch '10.2' into 10.3
This commit is contained in:
commit
153b75b576
9 changed files with 92 additions and 8 deletions
|
|
@ -250,8 +250,9 @@ static int ptr_cmp(void **a, void **b)
|
|||
#define add_to_purgatory(PINS, ADDR) \
|
||||
do \
|
||||
{ \
|
||||
*(void **)((char *)(ADDR)+(PINS)->pinbox->free_ptr_offset)= \
|
||||
(PINS)->purgatory; \
|
||||
my_atomic_storeptr_explicit( \
|
||||
(void **)((char *)(ADDR)+(PINS)->pinbox->free_ptr_offset), \
|
||||
(PINS)->purgatory, MY_MEMORY_ORDER_RELEASE); \
|
||||
(PINS)->purgatory= (ADDR); \
|
||||
(PINS)->purgatory_count++; \
|
||||
} while (0)
|
||||
|
|
|
|||
|
|
@ -111,13 +111,16 @@ retry:
|
|||
|
||||
cur_hashnr= cursor->curr->hashnr;
|
||||
cur_keylen= cursor->curr->keylen;
|
||||
cur_key= cursor->curr->key;
|
||||
cur_key= my_atomic_loadptr_explicit((void **) &cursor->curr->key,
|
||||
MY_MEMORY_ORDER_ACQUIRE);
|
||||
|
||||
do {
|
||||
link= cursor->curr->link;
|
||||
link= (intptr) my_atomic_loadptr_explicit((void **) &cursor->curr->link,
|
||||
MY_MEMORY_ORDER_RELAXED);
|
||||
cursor->next= PTR(link);
|
||||
lf_pin(pins, 0, cursor->next);
|
||||
} while (link != cursor->curr->link && LF_BACKOFF());
|
||||
} while (link != (intptr) my_atomic_loadptr((void **) &cursor->curr->link)
|
||||
&& LF_BACKOFF());
|
||||
|
||||
if (!DELETED(link))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue