frostfs-node/pkg/local_object_storage/writecache
Pavel Karpy e9461686b8 [] wc: Resolve possible deadlock
If operation with WC are _fast enough_ (e.g. `Init` failed and `Close` is
called immediately) there is a race and a deadlock that do not allow finish
(and start, in fact) an initialization routine because of taken `modeMtx`
and also do not allow finish `Close` call because of awaiting initialization
finish. So do stop initialization _before_ any mutex is taken.

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
2023-04-20 19:22:54 +03:00
..
delete.go [] node: Add tracing spans 2023-04-14 10:25:53 +00:00
doc.go [] writecache: Actualize docs 2022-09-02 11:59:53 +03:00
flush.go [] wc: Make wait groups work more explicit 2023-04-20 19:22:54 +03:00
flush_test.go [] node: Add tracing spans 2023-04-14 10:25:53 +00:00
generic_test.go Rename package name 2023-03-07 16:38:26 +03:00
get.go [] get-object: Add tracing spans 2023-04-12 06:52:00 +00:00
init.go [] write-cache: Fix init race condition 2023-04-19 09:29:07 +00:00
iterate.go Rename package name 2023-03-07 16:38:26 +03:00
mode.go [] wc: Resolve possible deadlock 2023-04-20 19:22:54 +03:00
options.go [] node: Add tracing spans 2023-04-14 10:25:53 +00:00
put.go [] node: Add tracing spans 2023-04-14 10:25:53 +00:00
state.go [] writecache: Simplify object counters 2022-09-02 11:59:53 +03:00
storage.go [] node: Add tracing spans 2023-04-14 10:25:53 +00:00
util.go [] test: Add test storage implementation 2023-03-29 14:28:49 +00:00
writecache.go [] wc: Resolve possible deadlock 2023-04-20 19:22:54 +03:00