diff options
author | Volker Lendecke <vl@samba.org> | 2014-03-26 14:14:45 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-03-31 22:52:13 +0200 |
commit | 2ae3565a55daee5a62108172075fc419c6f5450b (patch) | |
tree | 5b97bc08fb0bca5f3be931b2184ad7368df11ef0 /source4/torture/local | |
parent | eee3723df0fef75a3adaa5ae2ec55fd523e3a126 (diff) | |
download | samba-2ae3565a55daee5a62108172075fc419c6f5450b.tar.gz |
torture: Avoid passing lp_ctx to tdb_wrap_open in test_tdb_speed
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/torture/local')
-rw-r--r-- | source4/torture/local/dbspeed.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/local/dbspeed.c b/source4/torture/local/dbspeed.c index 51ea8eaeef4..27d1e0ce15e 100644 --- a/source4/torture/local/dbspeed.c +++ b/source4/torture/local/dbspeed.c @@ -64,8 +64,9 @@ static bool test_tdb_speed(struct torture_context *torture, const void *_data) torture_comment(torture, "Testing tdb speed for sidmap\n"); - tdbw = tdb_wrap_open(tmp_ctx, "test.tdb", - 10000, 0, O_RDWR|O_CREAT|O_TRUNC, 0600, torture->lp_ctx); + tdbw = tdb_wrap_open_(tmp_ctx, "test.tdb", 10000, + lpcfg_tdb_flags(torture->lp_ctx, 0), + O_RDWR|O_CREAT|O_TRUNC, 0600); if (!tdbw) { torture_result(torture, TORTURE_FAIL, "Failed to open test.tdb"); goto failed; |