summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-02 17:07:00 +0200
committerVolker Lendecke <vlendec@sn-devel-104.sn.samba.org>2010-10-05 10:09:38 +0000
commitea08cd280cd03377cbabac8f6565719186330e44 (patch)
tree67cfe15b3c5b56f57a804ebd57e00ee343e966a5 /source3/smbd
parentaf5308ef9c30be759985a37f29c958eec0dc28cd (diff)
downloadsamba-ea08cd280cd03377cbabac8f6565719186330e44.tar.gz
samba-ea08cd280cd03377cbabac8f6565719186330e44.tar.bz2
samba-ea08cd280cd03377cbabac8f6565719186330e44.zip
s3: Stop using the write cache after an oplock break
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Oct 5 10:09:38 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/oplock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index c632e8a0f2..03bf211015 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -119,6 +119,7 @@ void release_file_oplock(files_struct *fsp)
fsp->sent_oplock_break = NO_BREAK_SENT;
flush_write_cache(fsp, OPLOCK_RELEASE_FLUSH);
+ delete_write_cache(fsp);
TALLOC_FREE(fsp->oplock_timeout);
}