Merge pull request #9659 from influxdata/bj-ignore-index-size

Ignore index size in Engine.DiskSize().
pull/9661/head
Ben Johnson 2018-03-29 13:43:50 -06:00 committed by GitHub
commit e7db8b587e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -647,7 +647,7 @@ func (e *Engine) Statistics(tags map[string]string) []models.Statistic {
// DiskSize returns the total size in bytes of all TSM and WAL segments on disk.
func (e *Engine) DiskSize() int64 {
return e.FileStore.DiskSizeBytes() + e.WAL.DiskSizeBytes() + e.index.DiskSizeBytes()
return e.FileStore.DiskSizeBytes() + e.WAL.DiskSizeBytes()
}
// Open opens and initializes the engine.