summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/dbwrap_torture.c4
1 files changed, 4 insertions, 0 deletions
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) {