Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binlog: Improve ZstdInMemoryDecompressorMaxSize management #17220

Merged
Prev Previous commit
Next Next commit
Tweak options comment
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed Nov 13, 2024
commit e2490f18e1d705af4779d30b93df707fe1c034a1
2 changes: 1 addition & 1 deletion go/mysql/binlog_event_compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func (dp *decoderPool) Get(reader io.Reader) (*zstd.Decoder, error) {
}
} else {
// Use the minimum amount of memory we can in processing the transaction by
// setting lowMem to true and limiting the window concurrency to 1 so that
// setting lowMem to true and limiting the decoder concurrency to 1 so that
// there's no async decoding of multiple windows or blocks.
d, err := zstd.NewReader(nil, zstd.WithDecoderLowmem(true), zstd.WithDecoderConcurrency(1))
if err != nil { // Should only happen e.g. due to ENOMEM
Expand Down
Loading