frostfs-node/pkg/local_object_storage/shard
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
..
container.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
control.go [] object: Return NOT_FOUND and ALREADY_REMOVED statuses 2022-03-17 16:34:00 +03:00
control_test.go [] object: Return NOT_FOUND and ALREADY_REMOVED statuses 2022-03-17 16:34:00 +03:00
delete.go [] shard: Introduce explicit Degraded mode 2022-03-31 15:33:22 +03:00
delete_test.go [] object: Return NOT_FOUND and ALREADY_REMOVED statuses 2022-03-17 16:34:00 +03:00
dump.go [] shard: rename Evacuate to Dump 2022-01-26 15:28:13 +03:00
dump_test.go [] *: Remove io/ioutil imports 2022-04-07 17:23:28 +03:00
errors.go [] object: Return NOT_FOUND and ALREADY_REMOVED statuses 2022-03-17 16:34:00 +03:00
exists.go [] shard: Handle some errors in degraded mode 2022-03-31 15:33:22 +03:00
gc.go [] node: Register GC event channel before shard init 2022-04-25 10:39:37 +03:00
get.go [] shard: Support degraded mode in Get and GetRange 2022-03-31 15:33:22 +03:00
get_test.go [] object: Return NOT_FOUND and ALREADY_REMOVED statuses 2022-03-17 16:34:00 +03:00
head.go [] *: Clarify docs about returned errors from apistatus package 2022-03-17 16:34:00 +03:00
head_test.go [] object: Return NOT_FOUND and ALREADY_REMOVED statuses 2022-03-17 16:34:00 +03:00
id.go [] shard: Save ID in the metabase 2022-03-04 17:13:13 +03:00
info.go [] services/control: return error counter in ListShards 2022-02-03 15:14:27 +03:00
inhume.go [] shard: Introduce explicit Degraded mode 2022-03-31 15:33:22 +03:00
inhume_test.go [] object: Return NOT_FOUND and ALREADY_REMOVED statuses 2022-03-17 16:34:00 +03:00
list.go [] *: Adopt SDK changes 2022-02-08 09:45:38 +03:00
list_test.go [] *: Use single Object type in whole project 2022-03-04 17:45:00 +03:00
lock.go [] shard: Introduce explicit Degraded mode 2022-03-31 15:33:22 +03:00
mode.go [] shard: Introduce explicit Degraded mode 2022-03-31 15:33:22 +03:00
move.go [] shard: Introduce explicit Degraded mode 2022-03-31 15:33:22 +03:00
put.go [] shard: Introduce explicit Degraded mode 2022-03-31 15:33:22 +03:00
range.go [] *: Clarify docs about returned errors from apistatus package 2022-03-17 16:34:00 +03:00
restore.go [] *: Use single Object type in whole project 2022-03-04 17:45:00 +03:00
select.go [] *: Use single Object type in whole project 2022-03-04 17:45:00 +03:00
shard.go [] node: Register GC event channel before shard init 2022-04-25 10:39:37 +03:00
shard_test.go [] Adopt neofs-node for non pointer slices in SDK 2022-03-16 15:29:31 +03:00
shutdown_test.go [] *: Use single Object type in whole project 2022-03-04 17:45:00 +03:00
weight.go [] shard: Extend Info with WeightValues 2020-12-11 17:19:37 +03:00