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

etcdserver, embed, integration: don't use pointer for ServerConfig #7909

Merged
merged 1 commit into from
Jun 16, 2017

Conversation

heyitsanthony
Copy link
Contributor

ServerConfig is owned by etdcserver and unshared, so don't pass or store by
pointer. Also removes duplicated field 'snapCount'.

Copy link
Contributor

@gyuho gyuho left a comment

Choose a reason for hiding this comment

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

lgtm. thanks!

@gyuho
Copy link
Contributor

gyuho commented May 10, 2017

@heyitsanthony heyitsanthony added this to the v3.3.0 milestone May 10, 2017
@codecov-io
Copy link

codecov-io commented May 10, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@066062a). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master   #7909   +/-   ##
========================================
  Coverage          ?   75.9%           
========================================
  Files             ?     332           
  Lines             ?   26315           
  Branches          ?       0           
========================================
  Hits              ?   19974           
  Misses            ?    4915           
  Partials          ?    1426
Impacted Files Coverage Δ
embed/etcd.go 73.33% <100%> (ø)
integration/cluster.go 85.54% <100%> (ø)
etcdserver/raft.go 87.87% <100%> (ø)
etcdserver/server.go 80.99% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 066062a...d433067. Read the comment docs.

@xiang90
Copy link
Contributor

xiang90 commented May 15, 2017

@heyitsanthony Look good to me.

One potential issue: InitialPeerURLsMap types.URLsMap is still a pointer type. So we are still not 100% safe. We do not try to change that field though.

@gyuho gyuho force-pushed the master branch 2 times, most recently from 44ca396 to 4301f49 Compare June 2, 2017 15:53
@xiang90
Copy link
Contributor

xiang90 commented Jun 15, 2017

@heyitsanthony shall we get this merged?

ServerConfig is owned by etdcserver and unshared, so don't pass or store by
pointer. Also removes duplicated field 'snapCount'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants