From 97b836a6f4d1dd17f0b5ee4719a8a2808a2684c0 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin <valyala@gmail.com> Date: Mon, 5 Oct 2020 23:31:14 +0300 Subject: [PATCH] lib/fs: fix GOOS=openbsd build by adding `fadviseSequentialRead` implementation. Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/785 --- lib/fs/fadvise_openbsd.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/fs/fadvise_openbsd.go diff --git a/lib/fs/fadvise_openbsd.go b/lib/fs/fadvise_openbsd.go new file mode 100644 index 000000000..73cfe81a7 --- /dev/null +++ b/lib/fs/fadvise_openbsd.go @@ -0,0 +1,10 @@ +package fs + +import ( + "os" +) + +func fadviseSequentialRead(f *os.File, prefetch bool) error { + // TODO: implement this properly + return nil +}