diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-22 22:39:46 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-22 22:39:46 -0800 |
| commit | 20ef3bb8d4e228cdcd2c81c46c98ffb95a6398aa (patch) | |
| tree | 9a37eb15554ab553c7983653712ab07ad70b5cab /weed/filesys/file_other.go | |
| parent | 711c3f393980f96971904d52d078e8f272451374 (diff) | |
| download | seaweedfs-20ef3bb8d4e228cdcd2c81c46c98ffb95a6398aa.tar.xz seaweedfs-20ef3bb8d4e228cdcd2c81c46c98ffb95a6398aa.zip | |
mount: use direct_io to avoid OS page cache
fix https://github.com/chrislusf/seaweedfs/issues/1752
Diffstat (limited to 'weed/filesys/file_other.go')
| -rw-r--r-- | weed/filesys/file_other.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/weed/filesys/file_other.go b/weed/filesys/file_other.go new file mode 100644 index 000000000..8a8693511 --- /dev/null +++ b/weed/filesys/file_other.go @@ -0,0 +1,7 @@ +//+build !darwin + +package filesys + +const ( + USE_DIRECT_IO = true +) |
