We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a086cda commit 8671f9dCopy full SHA for 8671f9d
discard.go
@@ -42,14 +42,14 @@ const discardFname string = "DISCARD"
42
func InitDiscardStats(opt Options) (*discardStats, error) {
43
fname := filepath.Join(opt.ValueDir, discardFname)
44
45
- // 1GB file can store 67M discard entries. Each entry is 16 bytes.
+ // 1MB file can store 65.536 discard entries. Each entry is 16 bytes.
46
mf, err := z.OpenMmapFile(fname, os.O_CREATE|os.O_RDWR, 1<<20)
47
lf := &discardStats{
48
MmapFile: mf,
49
opt: opt,
50
}
51
if err == z.NewFile {
52
- // We don't need to zero out the entire 1GB.
+ // We don't need to zero out the entire 1MB.
53
lf.zeroOut()
54
55
} else if err != nil {
0 commit comments