summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-08-16 13:01:10 +0000
committerMichael Adam <obnox@samba.org>2013-08-16 18:46:36 +0200
commit91b0ff7e0095e06f92a0af0362419fcb8ab9f6cb (patch)
tree21e1bcba76c4417b4a9bbc395078abc803c9da99 /source3
parent54d9ec751736cb19bd377e21853958eb89e8ef18 (diff)
downloadsamba-91b0ff7e0095e06f92a0af0362419fcb8ab9f6cb.tar.gz
samba-91b0ff7e0095e06f92a0af0362419fcb8ab9f6cb.tar.bz2
samba-91b0ff7e0095e06f92a0af0362419fcb8ab9f6cb.zip
smbd: Do not wait unnecessarily
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Aug 16 18:46:36 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/oplock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 5d9e42c116..e08a96350c 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -764,8 +764,8 @@ static void do_break_to_none(struct tevent_req *req)
initial_break_processing(state->sconn,
share_entry->id,
share_entry->share_file_id);
- wait_before_sending_break();
if (cur_fsp != NULL) {
+ wait_before_sending_break();
break_level2_to_none_async(cur_fsp);
} else {
DEBUG(3, ("release_level_2_oplocks_on_change: "