mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Add db.Head() method
Signed-off-by: Thibault Chataigner <t.chataigner@criteo.com>
This commit is contained in:
parent
87c01dd5fb
commit
0ff8f91ec8
1 changed files with 4 additions and 0 deletions
4
db.go
4
db.go
|
|
@ -527,6 +527,10 @@ func (db *DB) Blocks() []DiskBlock {
|
|||
return db.blocks
|
||||
}
|
||||
|
||||
func (db *DB) Head() *Head {
|
||||
return db.head
|
||||
}
|
||||
|
||||
// Close the partition.
|
||||
func (db *DB) Close() error {
|
||||
close(db.stopc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue