mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Ensure we send the direct levelII oplock break to the correct fid.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Feb 1 00:39:56 CET 2011 on sn-devel-104
This commit is contained in:
parent
e18b8c0730
commit
6696fd1c1e
@ -839,8 +839,17 @@ static void contend_level2_oplocks_begin_default(files_struct *fsp,
|
||||
*/
|
||||
|
||||
if (procid_is_me(&share_entry->pid)) {
|
||||
struct files_struct *cur_fsp =
|
||||
initial_break_processing(fsp->conn->sconn,
|
||||
share_entry->id,
|
||||
share_entry->share_file_id);
|
||||
wait_before_sending_break();
|
||||
break_level2_to_none_async(fsp);
|
||||
if (cur_fsp != NULL) {
|
||||
break_level2_to_none_async(cur_fsp);
|
||||
} else {
|
||||
DEBUG(3, ("release_level_2_oplocks_on_change: "
|
||||
"Did not find fsp, ignoring\n"));
|
||||
}
|
||||
} else {
|
||||
messaging_send_buf(fsp->conn->sconn->msg_ctx,
|
||||
share_entry->pid,
|
||||
|
Loading…
Reference in New Issue
Block a user