1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

r8545: Fix oplock bug introduced by oplock code "simplification" :-).

We *always* reply to an exclusive oplock break message even if
we have no record of the oplock (and we always did before 3.0.20pre2).
Jeremy.
(This used to be commit b1a94aadf25e94dcc168ea3a5ae008f4e84ff296)
This commit is contained in:
Jeremy Allison 2005-07-18 18:50:13 +00:00 committed by Gerald (Jerry) Carter
parent ef0e98b757
commit 8ebef3f4c8

View File

@ -461,12 +461,12 @@ pid %d, port %d, dev = %x, inode = %.0f, file_id = %lu\n",
*/
DEBUG(3,("process_local_message: oplock break requested with "
"no outstanding oplocks. Returning success.\n"));
return True;
}
if (!oplock_break(dev, inode, file_id, False)) {
DEBUG(0,("process_local_message: oplock break failed.\n"));
return False;
} else {
if (!oplock_break(dev, inode, file_id, False)) {
DEBUG(0,("process_local_message: oplock break failed.\n"));
return False;
}
}
/*