[SAMBA4] highestCommittedUSN support

simo idra at samba.org
Sun Feb 26 23:43:40 GMT 2006


On Mon, 2006-02-27 at 10:33 +1100, Luke Howard wrote:
> Hi Tridge,
> 
> >unfortunately it would means that on a crash we would lose info. We
> >would have records with usnChanged > highestCommittedUSN, which might
> >have implications for replication. Having gone to the trouble of
> >adding safe transactions and journaling to tdb I don't want to go back :-)
> 
> Right, but when you startup you can just search for all entries where
> usnChanged > highestCommittedUSN, and then update the in-memory NC
> high watermark.

You may have a lower than expected value if the entries with the higher
USN has been deleted just before the crash. When you recover you will
not find them and so you hCUSN will not be accurate. Don't know if that
matters anyway.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the samba-technical mailing list