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:
parent
5244d7b829
commit
923a5c873b
@ -311,7 +311,7 @@ func (m *DB) cleanupContent() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
err := newContentStore(m, m.cs).garbageCollect(ctx)
|
err := m.cs.garbageCollect(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.G(ctx).WithError(err).Warn("content garbage collection failed")
|
log.G(ctx).WithError(err).Warn("content garbage collection failed")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user