frostfs-node/pkg/services/object_manager
Evgenii Stratonikov 3a48b282b6 [#1248] placement: Use epoch to track netmap versions
Previously we used pointer, this could have worked,
because most of the time, the netmap is cached.
This didn't work, however, because `lastNm` field was always nil.

Rework the mechanism completely:
1. Use epoch to track netmap versions, as it it simpler and
   is unrelated to the TTL of an underlying cache.
2. Fix a bug where the epoch could change while mutex was unlocked.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-07-16 12:21:30 +00:00
..
placement [#1248] placement: Use epoch to track netmap versions 2024-07-16 12:21:30 +00:00
tombstone [#162] core: Move literals to constants 2023-08-11 15:48:42 +03:00