frostfs-node/pkg/local_object_storage
Pavel Karpy bd27837364 [#1321] node: Register GC event channel before shard init
Morph "NewEpoch" event handling was registered in a closure over
`addNewEpochNotificationHandler` func. That may lead to the data race:
if a shard was initialized before the event registration, everything works
as planned, but if registration was made earlier, it was not able to
include GC handlers since a shard has not called `eventChanInit` yet and,
therefore, it has not registered handler yet.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-04-25 10:39:37 +03:00
..
blobovnicza
blobstor
engine [#1321] node: Register GC event channel before shard init 2022-04-25 10:39:37 +03:00
internal/log
metabase
shard [#1321] node: Register GC event channel before shard init 2022-04-25 10:39:37 +03:00
util
writecache