diff options
author | Volker Lendecke <vl@samba.org> | 2009-12-11 16:51:40 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-02-12 23:12:10 +0100 |
commit | a66c40ff3853d109f13ad3a0dd79b170bb1c5366 (patch) | |
tree | d4943a6d675e30e604d364155a129bdd4e8d6347 /source3 | |
parent | 9113ce82b59c718ac709eb01b125e9e6746a96b7 (diff) | |
download | samba-a66c40ff3853d109f13ad3a0dd79b170bb1c5366.tar.gz samba-a66c40ff3853d109f13ad3a0dd79b170bb1c5366.tar.bz2 samba-a66c40ff3853d109f13ad3a0dd79b170bb1c5366.zip |
s3:dbwrap: If "-n" is given to dbwrap_torture, open db with CLEAR_IF_FIRST
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/dbwrap_torture.c | 4 |
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) { |