Skip to content

Commit

Permalink
minor PR feedback refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
corylanou committed May 10, 2016
1 parent a3bf3e2 commit 4d30ea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions tsdb/engine/tsm1/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,8 @@ func (e *Engine) readFileFromBackup(tr *tar.Reader, shardRelativePath string) er
// Sync to disk & close.
if err := f.Sync(); err != nil {
return err
} else if err := f.Close(); err != nil {
return err
}

return nil
return f.Close()
}

// addToIndexFromKey will pull the measurement name, series key, and field name from a composite key and add it to the
Expand Down
6 changes: 1 addition & 5 deletions tsdb/shard.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,11 +558,7 @@ func (s *Shard) Restore(r io.Reader, basePath string) error {
}

// Reopen engine.
if err := s.Open(); err != nil {
return err
}

return nil
return s.Open()
}

// Shards represents a sortable list of shards.
Expand Down

0 comments on commit 4d30ea1

Please sign in to comment.