From f0d72dc8f7ceebbbe2cb146b173c2f6967ce2e3d Mon Sep 17 00:00:00 2001 From: Bo Du Date: Mon, 11 Feb 2019 11:34:33 -0500 Subject: [PATCH] Keep Close method on persist manager. --- persist/fs/manager.go | 5 +++++ persist/persist.go | 3 +++ 2 files changed, 8 insertions(+) diff --git a/persist/fs/manager.go b/persist/fs/manager.go index 00729c5..cac816b 100644 --- a/persist/fs/manager.go +++ b/persist/fs/manager.go @@ -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 +} diff --git a/persist/persist.go b/persist/persist.go index eb0ce49..35b0b0e 100644 --- a/persist/persist.go +++ b/persist/persist.go @@ -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.