Fix container nodes cache #1248

Merged
fyrchik merged 3 commits from fyrchik/frostfs-node:container-nodes-cache into master 2024-07-16 12:21:39 +00:00
Owner

It hasn't cached netmap, so was useless.

It hasn't cached netmap, so was useless.
fyrchik requested review from storage-core-committers 2024-07-15 10:47:32 +00:00
fyrchik requested review from storage-core-developers 2024-07-15 10:47:36 +00:00
fyrchik force-pushed container-nodes-cache from 887f117ba0 to 5895c4a7b5 2024-07-15 10:49:02 +00:00 Compare
fyrchik force-pushed container-nodes-cache from 5895c4a7b5 to a061dd5c37 2024-07-15 10:49:20 +00:00 Compare
aarifullin reviewed 2024-07-15 12:23:55 +00:00
@ -0,0 +13,4 @@
type ContainerNodesCache struct {
// mtx protects lastEpoch and containerCache fields.
mtx sync.Mutex
// lastEpoch contains contains network map epoch for all values in the container cache.
Member

doubled contains

doubled `contains`
Author
Owner

fixed

fixed
aarifullin marked this conversation as resolved
Author
Owner

The separation will allow us to use this in e.g. evacuation routines.

The separation will allow us to use this in e.g. evacuation routines.
fyrchik force-pushed container-nodes-cache from a061dd5c37 to 2d23b3718e 2024-07-15 12:36:26 +00:00 Compare
aarifullin approved these changes 2024-07-15 13:13:20 +00:00
dstepanov-yadro approved these changes 2024-07-15 13:29:11 +00:00
fyrchik merged commit 286df198c9 into master 2024-07-16 12:21:39 +00:00
fyrchik deleted branch container-nodes-cache 2024-07-16 12:21:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1248
No description provided.