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