mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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>
This commit is contained in:
parent
eee3723df0
commit
2ae3565a55
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user