Signed-off-by: Alexander Morozov <lk4d4@docker.com> Upstream-commit: f2614f2107c838d014d31b806e3b8a9f1395cb2b Component: engine
11 lines
171 B
Go
11 lines
171 B
Go
package bolt
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// fdatasync flushes written data to a file descriptor.
|
|
func fdatasync(db *DB) error {
|
|
return syscall.Fdatasync(int(db.file.Fd()))
|
|
}
|