[PATCH] Drop empty records from persistent databases during recovery

Martin Schwenke martin at meltin.net
Fri Jun 16 03:39:31 UTC 2017


On Wed, 14 Jun 2017 16:08:41 +1000, Amitay Isaacs via samba-technical
<samba-technical at lists.samba.org> wrote:

> 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.

Reviewed-by: Martin Schwenke <martin at meltin.net>

Pushed...

peace & happiness,
martin



More information about the samba-technical mailing list