diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-04-19 02:06:44 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-04-19 02:06:44 +0200 |
commit | f0eb488d221d2d12d750babac0252aac671d92f4 (patch) | |
tree | d61e7dccb43cf18ecaddebcbcc568244c31335ce /source4 | |
parent | 95d111b7e44e2dc468021c435dcb2225e806faeb (diff) | |
download | samba-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')
-rw-r--r-- | source4/torture/smb2/persistent_handles.c | 2 |
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); |