fix: remove unnecessary limit for queueStore (#12491)

There is no good reason to limit ourselves
to max_open_fd for queue_store

Bonus: Support for publisher confirms
This commit is contained in:
Harshavardhana
2021-06-14 13:28:44 -07:00
committed by GitHub
parent 0d1fb10940
commit ed6cc66cf4
5 changed files with 94 additions and 55 deletions

View File

@@ -27,7 +27,6 @@ import (
"sync"
"github.com/minio/minio/internal/event"
"github.com/minio/pkg/sys"
)
const (
@@ -47,14 +46,6 @@ type QueueStore struct {
func NewQueueStore(directory string, limit uint64) Store {
if limit == 0 {
limit = defaultLimit
_, maxRLimit, err := sys.GetMaxOpenFileLimit()
if err == nil {
// Limit the maximum number of entries
// to maximum open file limit
if maxRLimit < limit {
limit = maxRLimit
}
}
}
return &QueueStore{