[PATCH] Drop empty records from persistent databases during recovery

Amitay Isaacs amitay at gmail.com
Wed Jun 14 06:08:41 UTC 2017


Hi,

During database recovery, empty records are not deleted from persistent
records.  This was done to avoid database corruption when recovering
persistent databases using record sequence numbers (RSNs).  Nowadays
persistent databases are always recovered using database sequence number
rather than record-by-record.  So there is no more reason to carry around
empty records in persistent databases.

Here are two patches:

1. Stop storing empty records in the persistent database.
2. Drop any empty records during recovery of persistent databases.

Please review and push.

Amitay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctdb.patch
Type: text/x-patch
Size: 3382 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170614/bdc1ae1f/ctdb.bin>


More information about the samba-technical mailing list