We were making an assumption in the oplock
authorJeremy Allison <jra@samba.org>
Tue, 24 Jul 2001 01:18:43 +0000 (01:18 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 24 Jul 2001 01:18:43 +0000 (01:18 +0000)
commit76f36b8c360c427fbcc19aa043a3c4b923fd37e7
treeea59c58426a9d87994287756c21ae905d8f476cd
parenta4947d1f45b0ddcddfd6f77d130e510820a95a40
We were making an assumption in the oplock
break code path that was invalid (ie. we were assuming
we could infer a non-levelII oplock when such an oplock
was detected - this may no longer be valid once we've
processed the break process dealing with the break will
change the state of it anyway.
This prevents the state where we get the following packet
trace :

client                      server
NTcreate ->
                         <- NTcreate resp
NTcreate ->
                         <- break to level II
ok - broken ->
                         <- break to none

Thanks to Alan Romeril for providing the trace that allowed
me to track this down.

Jeremy.
(This used to be commit c343e4f49070011986fc2ed4acd4ce690d5f1d71)
source3/smbd/open.c