Skip to content

Commit

Permalink
add cache=shared
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense committed Aug 4, 2022
1 parent 5832992 commit 753c5c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/modules/storageminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func StorageNetworkName(ctx helpers.MetricsCtx, a v1api.FullNode) (dtypes.Networ
}

func NewBoostDB(r lotus_repo.LockedRepo) (*sql.DB, error) {
dbPath := path.Join(r.Path(), "boost.db")
dbPath := path.Join(r.Path(), "boost.db?cache=shared")
return db.SqlDB(dbPath)
}

Expand All @@ -294,7 +294,7 @@ type LogSqlDB struct {
}

func NewLogsSqlDB(r repo.LockedRepo) (*LogSqlDB, error) {
dbPath := path.Join(r.Path(), "boost.logs.db")
dbPath := path.Join(r.Path(), "boost.logs.db?cache=shared")
d, err := db.SqlDB(dbPath)
if err != nil {
return nil, err
Expand Down

0 comments on commit 753c5c3

Please sign in to comment.