[PATCH] tdb: recycle dead records always at chain top
Michael Adam
obnox at samba.org
Tue Apr 1 05:49:45 MDT 2014
Hi,
based on Volker's patches from a couple of days ago,
here is a patch that simplifies the code a bit
(removes an almost-duplication). It changes the
semantics in that when recycling a record from the
chain to which the record-to-be-stored belongs,
we do not leave it in place and more but put it
to the top of the chain too (as with freelist records
and records recycled from other chains).
This may give an advantage when trying to find the record
again soon, but a disadvantage are the two
additional tdb_ofs_write calls.
Thoughts?
Cheers - Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tdb.dead-records.patch
Type: text/x-diff
Size: 3524 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140401/b05bf396/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 215 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140401/b05bf396/attachment.pgp>
More information about the samba-technical
mailing list