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/printing | |
parent | 2d02e5a16d53072a73d0d864da9b90dd3dad994a (diff) | |
download | samba-aaa59713155b63b2597f955622be9019bb3cbe89.tar.gz samba-aaa59713155b63b2597f955622be9019bb3cbe89.tar.bz2 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/printing')
-rw-r--r-- | source3/printing/printing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 221e79b337..c9736b70bb 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -202,7 +202,7 @@ bool print_backend_init(struct messaging_context *msg_ctx) return False; } if (tdb_fetch_int32(pdb->tdb, sversion) != PRINT_DATABASE_VERSION) { - tdb_traverse(pdb->tdb, tdb_traverse_delete_fn, NULL); + tdb_wipe(pdb->tdb); tdb_store_int32(pdb->tdb, sversion, PRINT_DATABASE_VERSION); } tdb_unlock_bystring(pdb->tdb, sversion); |