1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

torture3: Fix the local-dbwrap-ctdb test

We need to O_CREAT the database when connecting

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2020-03-23 13:01:29 +01:00 committed by Ralph Boehme
parent 684d3d06ce
commit 6829e73627

View File

@ -36,9 +36,16 @@ bool run_local_dbwrap_ctdb(int dummy)
msg_ctx = global_messaging_context();
db = db_open_ctdb(talloc_tos(), msg_ctx, "torture.tdb",
0, TDB_DEFAULT,
O_RDWR, 0755, DBWRAP_LOCK_ORDER_1, DBWRAP_FLAG_NONE);
db = db_open_ctdb(
talloc_tos(),
msg_ctx,
"torture.tdb",
0,
TDB_DEFAULT,
O_RDWR|O_CREAT,
0755,
DBWRAP_LOCK_ORDER_1,
DBWRAP_FLAG_NONE);
if (db == NULL) {
perror("db_open_ctdb failed");
goto fail;