Skip to content

raft: rename raftLog.nextEnts to raftLog.nextCommittedEnts#14719

Merged
ahrtr merged 1 commit intoetcd-io:mainfrom
nvb:nvanbenschoten/nextCommittedEnts
Nov 11, 2022
Merged

raft: rename raftLog.nextEnts to raftLog.nextCommittedEnts#14719
ahrtr merged 1 commit intoetcd-io:mainfrom
nvb:nvanbenschoten/nextCommittedEnts

Conversation

@nvb
Copy link
Contributor

@nvb nvb commented Nov 10, 2022

Also rename hasNextEnts to hasNextCommittedEnts.
Also rename maxNextEntsSize to maxNextCommittedEntsSize.

Extracted from #14627. cc. @tbg

Pure refactor.

Signed-off-by: Nathan VanBenschoten nvanbenschoten@gmail.com

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

@codecov-commenter
Copy link

Codecov Report

Merging #14719 (9337120) into main (0bff3ad) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main   #14719      +/-   ##
==========================================
- Coverage   75.55%   75.53%   -0.03%     
==========================================
  Files         457      457              
  Lines       37323    37321       -2     
==========================================
- Hits        28201    28192       -9     
- Misses       7354     7362       +8     
+ Partials     1768     1767       -1     
Flag Coverage Δ
all 75.53% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
raft/log.go 78.10% <100.00%> (ø)
raft/node.go 87.71% <100.00%> (ø)
raft/rawnode.go 75.86% <100.00%> (ø)
client/v3/namespace/watch.go 87.87% <0.00%> (-6.07%) ⬇️
client/pkg/v3/testutil/leak.go 62.83% <0.00%> (-4.43%) ⬇️
server/proxy/grpcproxy/watch.go 92.48% <0.00%> (-4.05%) ⬇️
server/etcdserver/api/v3rpc/watch.go 82.53% <0.00%> (-3.81%) ⬇️
server/etcdserver/api/v3rpc/util.go 70.96% <0.00%> (-3.23%) ⬇️
client/v3/concurrency/election.go 79.68% <0.00%> (-2.35%) ⬇️
server/etcdserver/api/v3rpc/maintenance.go 72.78% <0.00%> (-1.37%) ⬇️
... and 15 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@tbg tbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (reviewed before on main PR) once @ahrtr is happy.

Also rename hasNextEnts to hasNextCommittedEnts.
Also rename maxNextEntsSize to maxNextCommittedEntsSize.

Pure refactor.

Signed-off-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
@nvb nvb force-pushed the nvanbenschoten/nextCommittedEnts branch from 9337120 to 3711fde Compare November 11, 2022 18:21
@nvb
Copy link
Contributor Author

nvb commented Nov 11, 2022

@ahrtr thanks for the review, this should be good for another look.

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thank you @nvanbenschoten

@ahrtr ahrtr merged commit bdd5347 into etcd-io:main Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants

Comments