Skip to content

Commit

Permalink
Keep Close method on persist manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
notbdu committed Feb 11, 2019
1 parent ee40267 commit f0d72dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions persist/fs/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,8 @@ func (pm *persistManager) Finish() error {

return nil
}

// Close is a no-op for now.
func (pm *persistManager) Close() error {
return nil
}
3 changes: 3 additions & 0 deletions persist/persist.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ type Persister interface {

// Finish marks the persistence as complete.
Finish() error

// Close all resources owned by the persist manager.
Close() error
}

// SegmentMetadata contains the metadata for a segment.
Expand Down

0 comments on commit f0d72dc

Please sign in to comment.