← Back to team overview

maria-developers team mailing list archive

Re: [Commits] b2f45ba: MDEV-7324 - Lock-free hash for table definition cache

 

Hi, Sergey!

On Dec 28, Sergey Vojtovich wrote:
> There're 2 searches and 4 unpins in tdc_acquire_share. Let's simplify it a bit:
> 
> retry:
>   while (!search1())
>   {
>     insert();
>     search2();
>     unpin2();
>     return;
>   }
> 
>   if (fastpath_suceeded())
>   {
>     unpin1(); // This is unpin in question, corresponds to search1
>     return;
>   }
> 
>   if (deleted)
>   {
>     unpin1();
>     goto retry;
>   }
>   unpin1();

Ah, okay. Now I see the first lf_hash_search_using_hash_value(). Thanks.

Regards,
Sergei



References