Skip to content

MacOS: possible data loss/corruption #124

@networkimprov

Description

@networkimprov

fsync() on MacOS does not sync to disk; the correct sync method on MacOS is via fcntl(). Golang os.File.Sync() doesn't do this in version <= 1.11. A fix is in place for 1.12. golang/go#26650

Replace os.File.Sync calls with a direct syscall as a workaround until Go 1.12. golang/go@be10ad7

Related: golang/go#27415

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions