From 11027945d8de36cfc44c1b5b3980f17be7cd2dc4 Mon Sep 17 00:00:00 2001 From: Alejandro Lopez Date: Thu, 13 Jul 2023 12:13:53 +0300 Subject: [PATCH] [#479] writecache: Fix writecache fstree flush premature ctx cancel Signed-off-by: Alejandro Lopez --- pkg/local_object_storage/writecache/flush.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/local_object_storage/writecache/flush.go b/pkg/local_object_storage/writecache/flush.go index 779bac39..243be462 100644 --- a/pkg/local_object_storage/writecache/flush.go +++ b/pkg/local_object_storage/writecache/flush.go @@ -37,7 +37,6 @@ const ( // runFlushLoop starts background workers which periodically flush objects to the blobstor. func (c *cache) runFlushLoop() { ctx, cancel := context.WithCancel(context.Background()) - defer cancel() ch := c.closeCh c.wg.Add(1)