Revert "[#1367] writecache: Add background flushing objects limiter"

This reverts commit e39378b1c3.
This commit is contained in:
Dmitrii Stepanov 2025-01-22 11:38:21 +03:00
parent 105278f1b3
commit f44ba3b76b
Signed by: dstepanov-yadro
GPG key ID: 237AF1A763293BC0
12 changed files with 32 additions and 181 deletions

View file

@ -45,8 +45,6 @@ type options struct {
disableBackgroundFlush bool
// pageSize is bbolt's page size config value
pageSize int
// flushSizeLimit is total size of flushing objects.
flushSizeLimit uint64
}
// WithLogger sets logger.
@ -172,10 +170,3 @@ func WithPageSize(s int) Option {
o.pageSize = s
}
}
// WithFlushSizeLimit sets flush size limit.
func WithFlushSizeLimit(v uint64) Option {
return func(o *options) {
o.flushSizeLimit = v
}
}