Refactor dbwrap_ctdb a bit

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


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



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, mailto:kontakt at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbwrap_ctdb.patch
Type: text/x-diff
Size: 41105 bytes
Desc: not available
URL: <>

More information about the samba-technical mailing list