mirror of
https://github.com/minio/minio.git
synced 2025-11-27 20:58:55 -05:00
notification queue limit has no maxLimit (#9380)
New value defaults to 100K events by default, but users can tune this value upto any value they seem necessary. * increase the limit to maxint64 while validating
This commit is contained in:
@@ -30,8 +30,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
maxLimit = 10000 // Max store limit.
|
||||
eventExt = ".event"
|
||||
defaultLimit = 100000 // Default store limit.
|
||||
eventExt = ".event"
|
||||
)
|
||||
|
||||
// QueueStore - Filestore for persisting events.
|
||||
@@ -45,7 +45,7 @@ type QueueStore struct {
|
||||
// NewQueueStore - Creates an instance for QueueStore.
|
||||
func NewQueueStore(directory string, limit uint64) Store {
|
||||
if limit == 0 {
|
||||
limit = maxLimit
|
||||
limit = defaultLimit
|
||||
_, maxRLimit, err := sys.GetMaxOpenFileLimit()
|
||||
if err == nil {
|
||||
// Limit the maximum number of entries
|
||||
|
||||
Reference in New Issue
Block a user