Add db.Head() method

Signed-off-by: Thibault Chataigner <t.chataigner@criteo.com>
This commit is contained in:
Thibault Chataigner 2017-09-25 16:45:24 +02:00
parent 87c01dd5fb
commit 0ff8f91ec8

4
db.go
View file

@ -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)