Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raft::RequestVote中的getLastLogIndex()函数返回值 #49

Closed
Anu-orange opened this issue Mar 14, 2024 · 3 comments · Fixed by #50
Closed

Raft::RequestVote中的getLastLogIndex()函数返回值 #49

Anu-orange opened this issue Mar 14, 2024 · 3 comments · Fixed by #50

Comments

@Anu-orange
Copy link

先进入getLastLogIndex()函数:
image
然后看接收变量:
image
其实就算这样写,对程序也是没有影响的,因为涉及到lastLogTerm的那个if下面什么也没做,源代码是注释了那个DPrintf函数的,但是可以为了严谨改一下

@578223592
Copy link
Collaborator

@Anu-orange 感谢,确实有问题,要严谨一点,已经修改了

@Anu-orange
Copy link
Author

@578223592 客气了, 一个好的项目需要很多人一起努力 慢慢打磨才会变得更好

@578223592
Copy link
Collaborator

@578223592 客气了, 一个好的项目需要很多人一起努力 慢慢打磨才会变得更好

哈哈是的,如果项目有帮助欢迎点个star以及给别人分享,也欢迎提出更多意见和提pr。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants