Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sstable: avoid allocating up to maximum block size in valueBlockWriter
Tests can set a high maximum block size e.g. TestReader sets the block size to 2GB. This resulted in a 3GB byte slice being allocated. The new logic is similar to the behavior in blockWriter. Fixes #2159
- Loading branch information