[PATCH] CTDB protocol and client fixes
Volker Lendecke
Volker.Lendecke at SerNet.DE
Tue Nov 24 09:15:24 UTC 2015
On Tue, Nov 24, 2015 at 07:35:32PM +1100, Amitay Isaacs wrote:
> > If the sync APIs are only ever called inside ctdb tool or
> > tests, why is the additional overhead a problem?
> >
>
> The problem is not of the overhead. Since the API is designed around
> single tevent_fd, you always need the same event context around. Otherwise
> you end up having to do tevent_add_fd() in each sync API. This is even
> trickier since the tevent_add_fd() is burried in a lower level abstraction
> (comm).
In the smb libraries and others, look at tsocket, we have started from
the basic socket calls to not cache a tevent_fd.
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
More information about the samba-technical
mailing list