Merge pull request #126 from ankon/pr/issue-125

Log the directory when the WAL cannot be opened
This commit is contained in:
Goutham Veeramachaneni 2017-08-22 14:52:30 +05:30 committed by GitHub
commit 79dc0ed420

2
db.go
View File

@ -877,7 +877,7 @@ func (db *DB) openHeadBlock(dir string) (*HeadBlock, error) {
)
wal, err := OpenSegmentWAL(wdir, l, 5*time.Second)
if err != nil {
return nil, errors.Wrap(err, "open WAL %s")
return nil, errors.Wrapf(err, "open WAL %s", dir)
}
h, err := OpenHeadBlock(dir, log.With(db.logger, "block", dir), wal, db.compactor)