← Back to team overview

maria-developers team mailing list archive

Re: What is bundled libevent library for?

 

On Monday 18 November 2013 09:25:38 Sergei Golubchik wrote:
> Hi, Colin!
> 
> On Nov 18, Colin Charles wrote:
> > On 17 Nov 2013, at 19:13, Sergei Golubchik <serg@xxxxxxxxxxx> wrote:
> > > On Nov 16, Pavel Ivanov wrote:
> > >> Sergei,
> > >> 
> > >> Do you know why MariaDB sources have libevent library bundled with
> > >> them? I don't see it being used anywhere. I see it was added in this
> > >> commit by Monty
> > >> http://bazaar.launchpad.net/~maria-captains/maria/10.0/revision/3492.3.
> > >> 1,
> > >> but even in that commit I can't find any usages of the library.
> > >> So should it be removed from MariaDB?
> > > 
> > > Yes. I can do that.
> > > It came with 5.6 merge, and in 5.6 libevent is used by memcached plugin.
> > 
> > Aren't we planning on actually ensuring that we have the memached
> > innodb plugin? From what I understand, Oracle has put more effort into
> > this in 5.7, and the latest milestone release may even have it
> > performing faster than memcached itself (source: Tomas Ulin keynote,
> > Percona Live London, last week)
> 
> I haven't heard of any such plans.
> 
> But even if we will, nothing prevents us from adding libevent when we'll
> need it. Or we can use system libevent (like we do with boost).
> 
> It doesn't change the fact that libevent was merged in by mistake and
> that it's not used in 10.0

I was curious about this since I listed libevent as an (optional) dependency 
for MariaDB for a long time for Slackware. I grepped through the 5.5 sources 
and I suppose you're right, it is barely used. But there are several mentions:

- debian files mention dependency on libevent-dev
- several files under BUILD mention "--with-libevent"
- ./tests/async_queries.c uses libevent methods

Checking the 10.0 sources I see those mentions are still present, so maybe 
that's something to look into?

Grs,
Heinz

Attachment: signature.asc
Description: This is a digitally signed message part.


References