fix double precision ,module bloomfilter double to string #830
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix double precision ,module double to string
当我们使用redisshake迁移的时候 发现 bloomfilter 模块 无法迁移 精度超过 0.000001的 ratio字段,因为最后他会白这个精度 ratio修改成0,这会导致 记载 boomfilter过滤器的实例无法 bgsave,因为 ratio默认不会为0, 最后经过排查发现是 redisshake精度转换有问题。
tips: ratio每次库容 都会 降低一个数量级。
迁移后 目标端会成为这种情况。
当然我也查看了一下 调用此函数的其他地方,tairzset 的rewrite 功能也会导致 精度丧失。我觉得这是一个比较严重的 bug。