chenjiandongx / mandodb

🤔 A minimize Time Series Database, written from scratch as a learning project. 从零开始实现一个 TSDB
MIT License
682 stars 74 forks source link

fix: undefined array length maxMapSize #6

Closed huang-jesse closed 1 year ago

huang-jesse commented 1 year ago

Fix https://github.com/chenjiandongx/mandodb/issues/5

chenjiandongx commented 1 year ago

@huang-jesse

Should this value be 256TB? refer to prometheus code https://github.com/prometheus/prometheus/blob/main/tsdb/fileutil/mmap_amd64.go#L19

huang-jesse commented 1 year ago

@huang-jesse

Should this value be 256TB? refer to prometheus code https://github.com/prometheus/prometheus/blob/main/tsdb/fileutil/mmap_amd64.go#L19

Oh, it's a mistake, your opinion is correct. I will correct it latter.

huang-jesse commented 1 year ago

@chenjiandongx I've adjusted the maxMapSize to 256TB.