diff options
author | Michael Adam <obnox@samba.org> | 2008-03-25 14:18:08 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-25 15:55:34 +0100 |
commit | aaa59713155b63b2597f955622be9019bb3cbe89 (patch) | |
tree | 387265c33a331aa940f4f1984f2b2fd67c594b54 /source3/groupdb | |
parent | 2d02e5a16d53072a73d0d864da9b90dd3dad994a (diff) | |
download | samba-aaa59713155b63b2597f955622be9019bb3cbe89.tar.gz samba-aaa59713155b63b2597f955622be9019bb3cbe89.tar.xz samba-aaa59713155b63b2597f955622be9019bb3cbe89.zip |
util_tdb: add a wrapper tdb_wipe() for traverse with tdb_traverse_delete_fn().
Replace all callers of traverse with this tdb_traverse_delete_fn() and
don't export tdb_traverse_delete_fn() anymore.
Michael
(This used to be commit d4be4e30cd8c3bdc303da30e42280f892a45a8c9)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping_tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c index c9c8cdcaeb2..6732e3c42e0 100644 --- a/source3/groupdb/mapping_tdb.c +++ b/source3/groupdb/mapping_tdb.c @@ -76,7 +76,7 @@ static bool init_group_mapping(void) /* if its an unknown version we remove everthing in the db */ if (vers_id != DATABASE_VERSION_V2) { - tdb_traverse(tdb, tdb_traverse_delete_fn, NULL); + tdb_wipe(tdb); tdb_store_int32(tdb, vstring, DATABASE_VERSION_V2); } |