Add DB.Dir method

This commit is contained in:
Fabian Reinartz 2017-06-08 12:14:13 +02:00
parent 7e4368e6c3
commit d4cb579443
1 changed files with 5 additions and 0 deletions

5
db.go
View File

@ -238,6 +238,11 @@ func Open(dir string, l log.Logger, r prometheus.Registerer, opts *Options) (db
return db, nil
}
// Dir returns the directory of the database.
func (db *DB) Dir() string {
return db.dir
}
func (db *DB) run() {
defer close(db.donec)