SMB2-PERSISTENT-HANDLES1: close the handle before deleting it
authorStefan Metzmacher <metze@samba.org>
Sat, 19 Apr 2008 00:06:44 +0000 (02:06 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 19 Apr 2008 00:06:44 +0000 (02:06 +0200)
This means we no longer have a oplock break timing out
for the "delete".

metze
(This used to be commit 50f6a72b674f58a24c1a6c42e4dd56dc4e9f5a1e)

source4/torture/smb2/persistent_handles.c

index ace57d881729194de35be50a432322659bd2ba08..249ddd1733e5ff90fe9b9a7cf61d532b243e66f1 100644 (file)
@@ -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);