1
0
Fork 0

Log Store directory path on startup

master
Philip O'Toole 7 years ago
parent e6779b4410
commit b5b2cb21db

@ -1,3 +1,6 @@
## 4.2.3 (unreleased)
- [PR #389](https://github.com/rqlite/rqlite/pull/389): Log Store directory path on startup.
## 4.2.2 (December 7th 2017)
- [PR #383](https://github.com/rqlite/rqlite/pull/383): Fix unit tests after underlying SQLite master table changes.
- [PR #384](https://github.com/rqlite/rqlite/pull/384): "status" perm required to access Go runtime information.

@ -224,6 +224,7 @@ func New(c *StoreConfig) *Store {
// Open opens the store. If enableSingle is set, and there are no existing peers,
// then this node becomes the first node, and therefore leader, of the cluster.
func (s *Store) Open(enableSingle bool) error {
s.logger.Printf("ensuring %s exists", s.raftDir)
if err := os.MkdirAll(s.raftDir, 0755); err != nil {
return err
}

Loading…
Cancel
Save