From b4a2103a12de1d14dbd1766dbdf5fdf926af7e87 Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Tue, 4 Dec 2018 16:50:11 +0300 Subject: [PATCH] Release v0.3.0 (#464) --- CHANGELOG.md | 13 ++++++++----- index/index.go | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6836f674f..d220de4ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ ## master / unreleased - - `LastCheckpoint` used to return just the segment name and now it returns the full relative path. - - `NewSegmentsRangeReader` can now read over miltiple wal ranges by using the new `SegmentRange` struct. - - `CorruptionErr` now also exposes the Segment `Dir` which is added when displaying any errors. - - `Head.Init()` is changed to `Head.Init(minValidTime int64)` where `minValidTime` is taken from the maxt of the last persisted block and any samples below `minValidTime` will not be loaded from the wal in the head. The same value is used when using the `Heah.Appender()` to disallow adding samples below the `minValidTime` timestamp. This change was nececary to fix a bug where a `Snapshot()` with the head included would create a block with custom time range(not bound to the default time ranges) and the next block population from the head would create an overlapping block. - - https://github.com/prometheus/tsdb/issues/446 \ No newline at end of file +## 0.3.0 + + - [CHANGE] `LastCheckpoint()` used to return just the segment name and now it returns the full relative path. + - [CHANGE] `NewSegmentsRangeReader()` can now read over miltiple wal ranges by using the new `SegmentRange{}` struct. + - [CHANGE] `CorruptionErr{}` now also exposes the Segment `Dir` which is added when displaying any errors. + - [CHANGE] `Head.Init()` is changed to `Head.Init(minValidTime int64)` + - [CHANGE] `SymbolTable()` renamed to `SymbolTableSize()` to make the name consistent with the `Block{ symbolTableSize uint64 }` field. + - [CHANGE] `wal.Reader{}` now exposes `Segment()` for the current segment being read and `Offset()` for the current offset. diff --git a/index/index.go b/index/index.go index 880fbb199..6413a9fca 100644 --- a/index/index.go +++ b/index/index.go @@ -868,7 +868,7 @@ func (r *Reader) Symbols() (map[string]struct{}, error) { return res, nil } -// SymbolTable returns the symbol table that is used to resolve symbol references. +// SymbolTableSize returns the symbol table that is used to resolve symbol references. func (r *Reader) SymbolTableSize() uint64 { var size int for _, s := range r.symbols {