Refactor dbwrap_ctdb a bit

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Nov 22 06:50:14 MST 2012


Hi!

Attached find a patch that refactors dbwrap_ctdb a bit. A
while ago, the parse_record dbwrap backend operation was
added. dbwrap_fetch() at the dbwrap toplevel was converted
to use parse_record, so that the fetch backend operation
became unnecessary. All but the dbwrap_ctdb backends were
converted. dbwrap_ctdb however does a fake parse based
internally on the fetch operation. This leads to allocations
and memcpy operations where they are not strictly necessary.

The attached patchset converts dbwrap_ctdb to do a proper
parse operation avoiding the memory allocations in the local
cases.

Comments?

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbwrap_ctdb.patch
Type: text/x-diff
Size: 41105 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20121122/6273753a/attachment-0001.patch>


More information about the samba-technical mailing list