git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d1db0a
)
s3: Stop using the write cache after an oplock break
author
Volker Lendecke
<vl@samba.org>
Sat, 2 Oct 2010 15:07:00 +0000
(17:07 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Thu, 7 Oct 2010 16:40:58 +0000
(18:40 +0200)
Fix bug #7715 (Setting Samba Write Cache Size Can Cause File Corruption).
(cherry picked from commit
9f8292e5f765dff586bfbb261b54da4d4b27a837
)
source3/smbd/oplock.c
patch
|
blob
|
history
diff --git
a/source3/smbd/oplock.c
b/source3/smbd/oplock.c
index cdb6093fe95ce0f08571af3cf334f10a1aa8576c..ff5f6adb49d5431efd4854505cc387e421c81878 100644
(file)
--- a/
source3/smbd/oplock.c
+++ b/
source3/smbd/oplock.c
@@
-118,6
+118,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);
}