frostfs-node/pkg/local_object_storage/writecache
Pavel Karpy e9461686b8 [#274] 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 [#242] node: Add tracing spans 2023-04-14 10:25:53 +00:00
doc.go [#1745] writecache: Actualize docs 2022-09-02 11:59:53 +03:00
flush.go [#274] wc: Make wait groups work more explicit 2023-04-20 19:22:54 +03:00
flush_test.go [#242] 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 [#135] get-object: Add tracing spans 2023-04-12 06:52:00 +00:00
init.go [#255] 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 [#274] wc: Resolve possible deadlock 2023-04-20 19:22:54 +03:00
options.go [#242] node: Add tracing spans 2023-04-14 10:25:53 +00:00
put.go [#242] node: Add tracing spans 2023-04-14 10:25:53 +00:00
state.go [#1745] writecache: Simplify object counters 2022-09-02 11:59:53 +03:00
storage.go [#242] node: Add tracing spans 2023-04-14 10:25:53 +00:00
util.go [#139] test: Add test storage implementation 2023-03-29 14:28:49 +00:00
writecache.go [#274] wc: Resolve possible deadlock 2023-04-20 19:22:54 +03:00