From 10afd26354729f29cb8dcbb4069029fde0f6a6df Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 19 Oct 2021 16:10:55 +0300 Subject: [PATCH] [#901] engine: release shard pools in `Close` Signed-off-by: Evgenii Stratonikov --- pkg/local_object_storage/engine/control.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/local_object_storage/engine/control.go b/pkg/local_object_storage/engine/control.go index 1b1383b696..59b652e808 100644 --- a/pkg/local_object_storage/engine/control.go +++ b/pkg/local_object_storage/engine/control.go @@ -39,6 +39,10 @@ func (e *StorageEngine) Close() error { e.mtx.RLock() defer e.mtx.RUnlock() + for _, p := range e.shardPools { + p.Release() + } + for id, sh := range e.shards { if err := sh.Close(); err != nil { e.log.Debug("could not close shard",