From d4cb579443f1f22b25ff65548197c9f7368e3418 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Thu, 8 Jun 2017 12:14:13 +0200 Subject: [PATCH] Add DB.Dir method --- db.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db.go b/db.go index 015e29d17..fe35a348d 100644 --- a/db.go +++ b/db.go @@ -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)