mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
wal: fix O_RDONLY attr when opening old file
This commit is contained in:
parent
38ec659cd6
commit
969b529b08
@ -57,7 +57,7 @@ func New(path string) (*WAL, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Open(path string) (*WAL, error) {
|
func Open(path string) (*WAL, error) {
|
||||||
f, err := os.Open(path)
|
f, err := os.OpenFile(path, os.O_RDWR, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user