Skip to content

Commit 753c5c3

Browse files
committed
add cache=shared
1 parent 5832992 commit 753c5c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

node/modules/storageminer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func StorageNetworkName(ctx helpers.MetricsCtx, a v1api.FullNode) (dtypes.Networ
285285
}
286286

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

@@ -294,7 +294,7 @@ type LogSqlDB struct {
294294
}
295295

296296
func NewLogsSqlDB(r repo.LockedRepo) (*LogSqlDB, error) {
297-
dbPath := path.Join(r.Path(), "boost.logs.db")
297+
dbPath := path.Join(r.Path(), "boost.logs.db?cache=shared")
298298
d, err := db.SqlDB(dbPath)
299299
if err != nil {
300300
return nil, err

0 commit comments

Comments
 (0)