summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorSteven Danneman <steven.danneman@isilon.com>2009-12-18 15:35:35 -0800
committerSteven Danneman <steven.danneman@isilon.com>2010-01-06 18:48:10 -0800
commit71a40d7e2c21bf3ac47be3ec57fb091ff420ba9a (patch)
treec07dde840efd38b75a4b196b247c11946c3b57c9 /source4/torture
parent655bdb19bd91c43b2c5230927bfa8343a0c8a56a (diff)
downloadsamba-71a40d7e2c21bf3ac47be3ec57fb091ff420ba9a.tar.gz
samba-71a40d7e2c21bf3ac47be3ec57fb091ff420ba9a.tar.bz2
samba-71a40d7e2c21bf3ac47be3ec57fb091ff420ba9a.zip
s4/torture: fix small bug in lock test
Cleanup path should unlock, not cancel existing locked range.
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/raw/lock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/raw/lock.c b/source4/torture/raw/lock.c
index 0af73e503a..7eb461048b 100644
--- a/source4/torture/raw/lock.c
+++ b/source4/torture/raw/lock.c
@@ -643,6 +643,7 @@ static bool test_async(struct torture_context *tctx,
/* cleanup the second lock */
io.lockx.in.ulock_cnt = 1;
io.lockx.in.lock_cnt = 0;
+ io.lockx.in.mode = LOCKING_ANDX_LARGE_FILES;
io.lockx.in.locks = &lock[1];
status = smb_raw_lock(cli->tree, &io);
CHECK_STATUS(status, NT_STATUS_OK);