mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-28 13:48:56 +08:00
edf: Removed unnecessary Sync()
This commit is contained in:
parent
ffc417b0fd
commit
c0d4140557
@ -334,7 +334,6 @@ func (e *EdfFile) truncate(size int64) error {
|
|||||||
// called will result in crashes.
|
// called will result in crashes.
|
||||||
func (e *EdfFile) Unmap(flags int) error {
|
func (e *EdfFile) Unmap(flags int) error {
|
||||||
// Sync the file
|
// Sync the file
|
||||||
e.Sync()
|
|
||||||
if flags != EDF_UNMAP_NOSYNC {
|
if flags != EDF_UNMAP_NOSYNC {
|
||||||
e.Sync()
|
e.Sync()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user