Nulling out the op_mid is never the right thing to do. We depend on
authorJeremy Allison <jra@samba.org>
Thu, 17 Mar 2011 17:35:51 +0000 (10:35 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 17 Mar 2011 18:59:51 +0000 (19:59 +0100)
this value when searching for specific share mode entries.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Mar 17 19:59:51 CET 2011 on sn-devel-104

source3/locking/locking.c

index 15c53d4161549fb9570723cb96a9d5ba2b07de25..32d1b34faae1b29e5406e3ebd371187ce749809b 100644 (file)
@@ -1374,7 +1374,6 @@ bool remove_share_oplock(struct share_mode_lock *lck, files_struct *fsp)
                return False;
        }
 
-       e->op_mid = 0;
        if (EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) {
                /*
                 * Going from exclusive or batch,