-
Notifications
You must be signed in to change notification settings - Fork 999
Update function clusterNodeSetSlotBit() return type to void #1934
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
Update function clusterNodeSetSlotBit() return type to void #1934
Conversation
2b911a1 to
78560b0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #1934 +/- ##
============================================
- Coverage 70.99% 70.86% -0.14%
============================================
Files 123 123
Lines 65769 65768 -1
============================================
- Hits 46693 46604 -89
- Misses 19076 19164 +88
🚀 New features to boost your workflow:
|
src/cluster_legacy.c
Outdated
| /* Set the slot bit */ | ||
| void clusterNodeSetSlotBit(clusterNode *n, int slot) { | ||
| int old = bitmapTestBit(n->slots, slot); | ||
| if (!old) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(!bitmapTestBit(n->slots, slot)) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your comments. It is removed now.
src/cluster_legacy.c
Outdated
|
|
||
| /* Set the slot bit and return the old value. */ | ||
| int clusterNodeSetSlotBit(clusterNode *n, int slot) { | ||
| /* Set the slot bit */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant. The function name clusterNodeSetSlotBit already says it.
Signed-off-by: hwware <wen.hui.ware@gmail.com>
Signed-off-by: hwware <wen.hui.ware@gmail.com>
7a7dbe1 to
571cb82
Compare
…o#1934) No other functions use the return value of clusterNodeSetSlotBit(), thus this PR update the return type to void and update the comments. --------- Signed-off-by: hwware <wen.hui.ware@gmail.com>
No other functions use the return value of clusterNodeSetSlotBit(), thus this PR update the return type to void and
update the comments.