Closed sergeyberezansky closed 3 days ago
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @sergeyberezansky and the rest of your teammates on Graphite
1 reviewer was added to this PR based on Sergey Berezansky's automation.
TL;DR
Introduced a new
AsMapKey()
method forMountOptions
to create version-agnostic map keys.What changed?
AsMapKey()
method to theMountOptions
struct inmountoptions.go
.MountOptionSyncOnClose
) to be used as a map key.mounter.go
to useAsMapKey()
instead ofString()
when accessing or modifying themountMap
.How to test?
Covered by unit testing
Why make this change?
This change allows for more consistent handling of mount options across different versions of the Weka cluster / client. By excluding version-specific options like
MountOptionSyncOnClose
from the map key, we can avoid unnecessary duplication of mounts and ensure that mounts with the same essential options are treated as identical, regardless of version-specific differences.