mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Trying to track down the SMB2 error. Add an invariant test.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Apr 16 02:15:38 CEST 2011 on sn-devel-104
This commit is contained in:
parent
e49893c68e
commit
82fdad8a4c
@ -1376,12 +1376,15 @@ bool remove_share_oplock(struct share_mode_lock *lck, files_struct *fsp)
|
||||
return False;
|
||||
}
|
||||
|
||||
if (EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
|
||||
if (EXCLUSIVE_OPLOCK_TYPE(e->op_type)) {
|
||||
/*
|
||||
* Going from exclusive or batch,
|
||||
* we always go through FAKE_LEVEL_II
|
||||
* first.
|
||||
*/
|
||||
if (!EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
|
||||
smb_panic("remove_share_oplock: logic error");
|
||||
}
|
||||
e->op_type = FAKE_LEVEL_II_OPLOCK;
|
||||
} else {
|
||||
e->op_type = NO_OPLOCK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user