[#479] Fix writecache fstree flush premature ctx cancel #518

Merged
fyrchik merged 1 commit from ale64bit/frostfs-node:fix/479-wc-fstree-flush into master 2023-07-15 09:55:36 +00:00
Showing only changes of commit 11027945d8 - Show all commits

View file

@ -37,7 +37,6 @@ const (
// runFlushLoop starts background workers which periodically flush objects to the blobstor. // runFlushLoop starts background workers which periodically flush objects to the blobstor.
func (c *cache) runFlushLoop() { func (c *cache) runFlushLoop() {
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ch := c.closeCh ch := c.closeCh
c.wg.Add(1) c.wg.Add(1)