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 <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan 2017-10-18 15:30:12 -07:00
parent 5244d7b829
commit 923a5c873b
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB

View File

@ -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")
}