diff options
author | Michael Adam <obnox@samba.org> | 2008-03-26 10:50:08 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-26 10:50:35 +0100 |
commit | da27c770467d7e0494fbea70d5e424e76851819f (patch) | |
tree | fb5bdc94d4e441acf96960a08847e7d07304fbe7 | |
parent | 6efe4873dcaa78520840a57264881d7b47036b91 (diff) | |
download | samba-da27c770467d7e0494fbea70d5e424e76851819f.tar.gz samba-da27c770467d7e0494fbea70d5e424e76851819f.tar.bz2 samba-da27c770467d7e0494fbea70d5e424e76851819f.zip |
use tdb_wipe_all() instead of tdb_wipe() - it is faster...
Michael
(This used to be commit 3d2fdcd50fdbfb66a14360516836445d47eceeb0)
-rw-r--r-- | source3/intl/lang_tdb.c | 2 | ||||
-rw-r--r-- | source3/lib/sharesec.c | 2 | ||||
-rw-r--r-- | source3/printing/printing.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/intl/lang_tdb.c b/source3/intl/lang_tdb.c index 4e4a3a5e20..499b9eb87d 100644 --- a/source3/intl/lang_tdb.c +++ b/source3/intl/lang_tdb.c @@ -45,7 +45,7 @@ static bool load_msg(const char *msg_file) } /* wipe the db */ - tdb_wipe(tdb); + tdb_wipe_all(tdb); msgid = NULL; diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c index 60f6e5077b..5a8984f4f0 100644 --- a/source3/lib/sharesec.c +++ b/source3/lib/sharesec.c @@ -65,7 +65,7 @@ static bool share_info_db_init(void) } if (vers_id != SHARE_DATABASE_VERSION_V2) { - tdb_wipe(share_tdb); + tdb_wipe_all(share_tdb); tdb_store_int32(share_tdb, vstring, SHARE_DATABASE_VERSION_V2); } tdb_unlock_bystring(share_tdb, vstring); diff --git a/source3/printing/printing.c b/source3/printing/printing.c index c9736b70bb..4c2f7b9627 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_wipe(pdb->tdb); + tdb_wipe_all(pdb->tdb); tdb_store_int32(pdb->tdb, sversion, PRINT_DATABASE_VERSION); } tdb_unlock_bystring(pdb->tdb, sversion); |