mirror of
https://github.com/minio/minio.git
synced 2025-11-28 05:04:14 -05:00
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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user