summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-04-19 02:06:44 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-19 02:06:44 +0200
commitf0eb488d221d2d12d750babac0252aac671d92f4 (patch)
treed61e7dccb43cf18ecaddebcbcc568244c31335ce /source4/torture
parent95d111b7e44e2dc468021c435dcb2225e806faeb (diff)
downloadsamba-f0eb488d221d2d12d750babac0252aac671d92f4.tar.gz
samba-f0eb488d221d2d12d750babac0252aac671d92f4.tar.bz2
samba-f0eb488d221d2d12d750babac0252aac671d92f4.zip
SMB2-PERSISTENT-HANDLES1: close the handle before deleting it
This means we no longer have a oplock break timing out for the "delete". metze (This used to be commit 50f6a72b674f58a24c1a6c42e4dd56dc4e9f5a1e)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/persistent_handles.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/smb2/persistent_handles.c b/source4/torture/smb2/persistent_handles.c
index ace57d8817..249ddd1733 100644
--- a/source4/torture/smb2/persistent_handles.c
+++ b/source4/torture/smb2/persistent_handles.c
@@ -174,6 +174,8 @@ bool torture_smb2_persistent_handles1(struct torture_context *tctx,
torture_comment(tctx, "position: %llu\n",
(unsigned long long)pos);
+ smb2_util_close(tree2, h2);
+
talloc_free(mem_ctx);
smb2_util_unlink(tree2, fname);