1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s3:torture: Move the init of the locking out of the loop

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Andreas Schneider 2019-03-21 11:55:01 +01:00 committed by Jeremy Allison
parent 16331870ee
commit 9b1d79a5dd

View File

@ -281,6 +281,11 @@ bool run_cleanup3(int dummy)
{ create_duplicate_batch, "create_duplicate_batch" },
};
if (!locking_init()) {
printf("locking_init failed\n");
return false;
}
printf("CLEANUP3: Checking that a share mode is cleaned up on "
"conflict\n");
@ -296,10 +301,6 @@ bool run_cleanup3(int dummy)
printf("%d %d %d\n", (int)id.devid, (int)id.inode,
(int)id.extid);
if (!locking_init()) {
printf("locking_init failed\n");
return false;
}
lck = get_existing_share_mode_lock(talloc_tos(), id);
if (lck == NULL) {
printf("get_existing_share_mode_lock failed\n");