Stringified numbers in metabase keys #2540
Labels
enhancement
Improving existing functionality
I4
No visible changes
neofs-storage
Storage node application issues
S2
Regular significance
U4
Nothing urgent
Expected Behavior
No data type conversions for DB keys.
Current Behavior
Expiration bucket using stringified representation of epoch for keys. This leads to:
strconv.FormatUint()
to get the key andstrconv.ParseUint()
to retrieve it back (and it can return an error)Possible Solution
8 bytes BE for the same thing, ordered, fixed size, conversion that can't fail.
Context
#2535.
Likely we have more cases like this in the metabase, please add comments.
The text was updated successfully, but these errors were encountered: