s4:provision Keep a single transaction for the erase and rebuild
authorAndrew Bartlett <abartlet@samba.org>
Thu, 13 Aug 2009 22:29:19 +0000 (08:29 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 16 Aug 2009 23:50:59 +0000 (09:50 +1000)
commit410114e41c713ccba2ac7d46e3f5acfddd986669
tree3f22b60e0e7b507822e15eea6ad7b2225a203a96
parentecd234a0f10c544ff83f79bbe8c9e0df597ccd7b
s4:provision Keep a single transaction for the erase and rebuild

Using a single transaction to both erase the bulk of the data and the
rebuild of that data means that the in-memory index list is
maintained, and not written out to disk until it is all compleated.
All the writes then occour at the end.

Andrew Bartlett
source4/scripting/python/samba/provision.py