frostfs-node/cmd/neofs-node
Pavel Karpy bd27837364 [] 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
..
config [] config: Delete notification endpoints 2022-04-08 11:52:18 +03:00
reputation [] timers: Add IterationsTicker 2022-03-16 17:18:30 +03:00
accounting.go [] client/balance: remove intermediate wrapper 2022-02-08 09:43:54 +03:00
attributes.go [] Adopt neofs-node for non pointer slices in SDK 2022-03-16 15:29:31 +03:00
cache.go [] container: Do not invalidate cache on Container.Delete 2022-04-25 10:34:12 +03:00
config.go [] node: Register GC event channel before shard init 2022-04-25 10:39:37 +03:00
container.go [] container: Do not invalidate cache on Container.Delete 2022-04-25 10:34:12 +03:00
control.go [] neofs-node: Use global cached netmap source in services 2022-03-30 14:22:12 +03:00
grpc.go [] neofs-node: Add timeout for grpc GracefulStop() 2022-03-25 17:39:24 +03:00
main.go [] nats: Split client creation into 2 stages 2022-03-24 11:51:49 +03:00
metrics.go [] node: Add more debug logs on shutdown 2021-08-05 14:44:05 +03:00
morph.go [] pkg/morph: Add worker pool 2022-04-08 11:52:18 +03:00
netmap.go [] Adopt neofs-node for non pointer slices in SDK 2022-03-16 15:29:31 +03:00
notificator.go [] nats: Split client creation into 2 stages 2022-03-24 11:51:49 +03:00
object.go [] neofs-node: Cache IRFetcher 2022-03-30 14:22:12 +03:00
pprof.go [] node: Add more debug logs on shutdown 2021-08-05 14:44:05 +03:00
reputation.go [] neofs-node: Use global cached netmap source in services 2022-03-30 14:22:12 +03:00
session.go [] object: Add persistent storage usage 2022-03-29 09:35:10 +03:00
timers.go [] reputation: Resolve race condition 2022-03-16 17:18:30 +03:00
worker.go [] cmd/neofs-node: Listen new epoch notifications from morph 2020-10-21 14:42:51 +03:00