Closed panlei-coder closed 2 weeks ago
[!WARNING]
Rate limit exceeded
@panlei-coder has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 5 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between f409652f9f4e9569e9b9579a0753db04a894a02c and 90c1358a4bc82555a8eaf28c5acbf2d2084cbb94.
此次更改涉及多个文件,主要集中在外部项目配置的更新、功能的新增以及现有方法的优化。braft
项目的Git标签已更新为更稳定的版本,确保系统的可靠性。此外,PRaft
类中新增了一个用于获取配置的方法,并改进了快照处理逻辑,以更准确地反映当前的配置状态。save_load.sh
脚本也进行了重构,以提高可读性和适应性。
文件 | 更改摘要 |
---|---|
cmake/braft.cmake |
更新外部项目的Git仓库和标签,仓库从https://github.com/pikiwidb/braft.git 更改为https://github.com/panlei-coder/braft.git ,标签从v1.1.2-alpha2 更改为v1.1.2.1 。 |
src/praft/praft.cc |
新增GetConfigurationByIndex 方法,更新快照加载逻辑,修正相关方法名称。 |
src/praft/praft.h |
在PRaft 类中新增GetConfigurationByIndex 声明。 |
src/praft/psnapshot.cc |
改进快照元数据更新过程,新增对学习者配置的处理,确保配置准确。 |
etc/script/build.sh |
在case语句的关闭;; 前添加空格,未改变功能。 |
etc/script/save_load.sh |
重构代码,引入变量以简化路径处理,未改变功能。 |
pikiwidb.conf |
在raft-port-offset 和use-raft 设置中调整空格,未改变功能。 |
在草地上跳跃的小兔,
新功能在欢快中出炉;
配置变化样样俱全,
处理快照更灵活,
欢庆代码的每一步,
让我们一起享受这美好时刻! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
优先合并:https://github.com/pikiwidb/braft/pull/8 braft 1、解决在真正生成快照时,snapshot meta 保存的成员配置信息和实际的快照数据不一致问题,可能导致新加入的节点跳过成员变更日志,出现配置信息不一致的问题。https://github.com/OpenAtomFoundation/pikiwidb/issues/385 2、修改 set_self_replay_point 接口为 set_last_applied_index_and_term。
Summary by CodeRabbit
Summary by CodeRabbit
新特性
PRaft
类中新增了一个用于根据索引获取配置的公共方法GetConfigurationByIndex
,提升了配置条目的动态访问能力。braft
库的版本标签至v1.1.2.1
,以确保使用更稳定的库版本。save_load.sh
脚本进行了重构,使用变量替代硬编码路径,提升了可维护性和适应性。样式
pikiwidb.conf
文件中的raft-port-offset
和use-raft
设置进行了微小的空格调整,确保配置一致性。修复