hashicorp / raft-wal

experimental raft storage
Mozilla Public License 2.0
86 stars 8 forks source link

fix bad file descriptor #8

Closed hanshasselberg closed 1 year ago

hanshasselberg commented 2 years ago

running this on linux has given us bad file descriptor.

https://man7.org/linux/man-pages/man2/openat.2.html:

The argument flags must include one of the following access modes: O_RDONLY, O_WRONLY, or O_RDWR. These request opening the file read-only, write-only, or read/write, respectively.

This PR came out of the R&D Hackathon 2022: project raft-wal.