[#32] node: Init write-cache asynchronously
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
parent
381e363a8b
commit
f1f3c80dbf
8 changed files with 132 additions and 15 deletions
|
@ -76,6 +76,9 @@ func (c *cache) openStore(readOnly bool) error {
|
|||
if c.flushed == nil {
|
||||
c.flushed, _ = lru.NewWithEvict[string, bool](c.maxFlushedMarksCount, c.removeFlushed)
|
||||
}
|
||||
|
||||
c.initialized.Store(false)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue