summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-26 10:50:08 +0100
committerKarolin Seeger <kseeger@samba.org>2008-03-27 08:38:26 +0100
commitdfbad488ae4e8ceb5b04c4d4687caf3de86c620b (patch)
tree581506588b74d500249c819a65797738ab1ea6d7
parent56e3660e4072d6bc6e69f0bcdc201dd28329327d (diff)
downloadsamba-dfbad488ae4e8ceb5b04c4d4687caf3de86c620b.tar.gz
samba-dfbad488ae4e8ceb5b04c4d4687caf3de86c620b.tar.xz
samba-dfbad488ae4e8ceb5b04c4d4687caf3de86c620b.zip
use tdb_wipe_all() instead of tdb_wipe() - it is faster...
Michael (cherry picked from commit 3d2fdcd50fdbfb66a14360516836445d47eceeb0)
-rw-r--r--source/intl/lang_tdb.c2
-rw-r--r--source/lib/sharesec.c2
-rw-r--r--source/printing/printing.c2
3 files changed, 3 insertions, 3 deletions
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);