← Back to team overview

maria-developers team mailing list archive

Re: 2792940391a: MDEV-23327 Can't uninstall UDF if the implementation library file doesn't exist

 

Hi, Oleksandr!

On Oct 11, Oleksandr Byelkin wrote:
> > > +  // Pre-check without protection
> > > +  if (!find_udf_everywhere(thd, udf_name->str, udf_name->length, table))
> >
> > you cannot check the udf_hash without a lock
> 
> I made an attempt of a fast check under read protection (because it
> looks like old code had pre-check).

As far as I can see, the old code was was using find_udf() that was
taking a read lock too.

Regards,
Sergei
VP of MariaDB Server Engineering
and security@xxxxxxxxxxx


References