don't set MaxReaders for tracking store
This commit is contained in:
parent
5872f246ff
commit
2080e467ba
@ -39,9 +39,9 @@ func NewTrackingStore(path string) (TrackingStore, error) {
|
||||
if err = env.SetMaxDBs(1); err != nil {
|
||||
return nil, fmt.Errorf("failed to set LMDB max dbs: %w", err)
|
||||
}
|
||||
if err = env.SetMaxReaders(2); err != nil {
|
||||
return nil, fmt.Errorf("failed to set LMDB max readers: %w", err)
|
||||
}
|
||||
// if err = env.SetMaxReaders(2); err != nil {
|
||||
// return nil, fmt.Errorf("failed to set LMDB max readers: %w", err)
|
||||
// }
|
||||
|
||||
if st, err := os.Stat(path); os.IsNotExist(err) {
|
||||
if err := os.MkdirAll(path, 0777); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user