From: Volker Lendecke Date: Sat, 2 Oct 2010 15:07:00 +0000 (+0200) Subject: s3: Stop using the write cache after an oplock break X-Git-Url: http://git.samba.org/?p=mat%2Fsamba.git;a=commitdiff_plain;h=ea08cd280cd03377cbabac8f6565719186330e44 s3: Stop using the write cache after an oplock break Autobuild-User: Volker Lendecke Autobuild-Date: Tue Oct 5 10:09:38 UTC 2010 on sn-devel-104 --- 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); }