gencache: Simplify gencache_stabilize
authorVolker Lendecke <vl@samba.org>
Wed, 16 Aug 2017 15:37:41 +0000 (17:37 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 17 Aug 2017 13:49:00 +0000 (15:49 +0200)
commit988a67d17d0ffe7da5b3faf84b708ad1154bd55c
treeb72ae71373a62cc956701de949bbbc79afc31d2f
parent2311d35f84b5e71ec1e19ae9165d6be650e50d37
gencache: Simplify gencache_stabilize

The only record that must remain in gencache_notrans.tdb is the last_stabilize
marker. Use tdb_wipe_all and store the marker under the allrecord lock.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Aug 17 15:49:00 CEST 2017 on sn-devel-144
source3/lib/gencache.c