From a66c40ff3853d109f13ad3a0dd79b170bb1c5366 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 11 Dec 2009 16:51:40 +0100 Subject: s3:dbwrap: If "-n" is given to dbwrap_torture, open db with CLEAR_IF_FIRST --- source3/utils/dbwrap_torture.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/utils/dbwrap_torture.c b/source3/utils/dbwrap_torture.c index 3cffd46787..f96b8f176c 100644 --- a/source3/utils/dbwrap_torture.c +++ b/source3/utils/dbwrap_torture.c @@ -299,6 +299,10 @@ int main(int argc, const char *argv[]) tdb_flags = TDB_DEFAULT; } + if (no_trans) { + tdb_flags |= TDB_CLEAR_IF_FIRST; + } + db = db_open(mem_ctx, db_name, 0, tdb_flags, O_RDWR | O_CREAT, 0644); if (db == NULL) { -- cgit