From: Michael Adam Date: Wed, 26 Mar 2008 09:50:08 +0000 (+0100) Subject: use tdb_wipe_all() instead of tdb_wipe() - it is faster... X-Git-Tag: samba-3.3.0pre1~3116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d2fdcd50fdbfb66a14360516836445d47eceeb0;p=thirdparty%2Fsamba.git use tdb_wipe_all() instead of tdb_wipe() - it is faster... Michael --- diff --git a/source/intl/lang_tdb.c b/source/intl/lang_tdb.c index 4e4a3a5e207..499b9eb87da 100644 --- a/source/intl/lang_tdb.c +++ b/source/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/source/lib/sharesec.c b/source/lib/sharesec.c index 60f6e5077b8..5a8984f4f03 100644 --- a/source/lib/sharesec.c +++ b/source/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/source/printing/printing.c b/source/printing/printing.c index c9736b70bbc..4c2f7b9627d 100644 --- a/source/printing/printing.c +++ b/source/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);