Merge pull request #152 from criteo-forks/master

Add db.Head() method
This commit is contained in:
Goutham Veeramachaneni 2017-09-28 18:10:53 +05:30 committed by GitHub
commit c521ac495f

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)