From 923a5c873b5c7a6253302ebf06f9830469dd0ddf Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Wed, 18 Oct 2017 15:30:12 -0700 Subject: [PATCH] Update content store garbage collection Use single instance of content store instead of creating new one for each collection. Using new instance and wrapping causes failures. Signed-off-by: Derek McGowan --- metadata/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/db.go b/metadata/db.go index 9629ccd30..510d14a2a 100644 --- a/metadata/db.go +++ b/metadata/db.go @@ -311,7 +311,7 @@ func (m *DB) cleanupContent() { return } - err := newContentStore(m, m.cs).garbageCollect(ctx) + err := m.cs.garbageCollect(ctx) if err != nil { log.G(ctx).WithError(err).Warn("content garbage collection failed") }