lib/storage: typo fix in comment to maxRowsPerSmallPart.

This commit is contained in:
Aliaksandr Valialkin 2019-10-08 18:51:14 +03:00
parent 7e410e1412
commit 7f4a04ee6a

View file

@ -29,7 +29,7 @@ func maxRowsPerSmallPart() uint64 {
// Production data shows that each row occupies ~1 byte in the compressed part. // Production data shows that each row occupies ~1 byte in the compressed part.
// It is expected no more than defaultPartsToMerge/2 parts exist // It is expected no more than defaultPartsToMerge/2 parts exist
// in the OS page cache before they are merged into bigger part. // in the OS page cache before they are merged into bigger part.
// Halft of the remaining RAM must be left for lib/mergeset parts, // Half of the remaining RAM must be left for lib/mergeset parts,
// so the maxItems is calculated using the below code: // so the maxItems is calculated using the below code:
maxRows := uint64(mem) / defaultPartsToMerge maxRows := uint64(mem) / defaultPartsToMerge
if maxRows < 10e6 { if maxRows < 10e6 {