[PATCH] notifyd: fix memory alignment

Volker Lendecke Volker.Lendecke at SerNet.DE
Sat Jul 18 19:10:53 UTC 2015


On Thu, Jul 16, 2015 at 09:47:53PM +0300, Uri Simchoni wrote:
> Best thing is to set up the DB fetching in a way that the data is
> aligned when fetched (the parse function can verify this). I'll look
> into it but xtdb experts can look into it without the learning curve.
> Second best option is to have an array that grows as-needed. This
> removes the allocations but not the copying.

The relevant code is in lib/dbwrap/dbwrap_rbt.c. In db_rbt_store()
we create the memory layout. This needs fixing. We already have some
alignment code in there, I need to take a fresh look.

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