Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2343)

Issue 82550043: agent/mongo: added MongoSelectPeerAddress

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by wwitzel
Modified:
10 years, 1 month ago
Reviewers:
wwitzel3, mp+213435, rog
Visibility:
Public.

Description

agent/mongo: added MongoSelectPeerAddress Use this method to ensure that we get the same selection behavior in many places. Including API calls, replicaset worker, and bootstrap state. https://code.launchpad.net/~wwitzel3/juju-core/004-ha-agent-selectpeeraddr/+merge/213435 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : agent/mongo: added MongoSelectPeerAddress #

Total comments: 6

Patch Set 3 : agent/mongo: added MongoSelectPeerAddress #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -0 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M agent/mongo/mongo.go View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M agent/mongo/mongo_test.go View 1 2 2 chunks +31 lines, -0 lines 2 comments Download

Messages

Total messages: 7
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-31 11:20:05 UTC) #1
wwitzel3
https://codereview.appspot.com/82550043/diff/1/agent/mongo/mongo_test.go File agent/mongo/mongo_test.go (right): https://codereview.appspot.com/82550043/diff/1/agent/mongo/mongo_test.go#newcode144 agent/mongo/mongo_test.go:144: func (s *MongoSuite) TestMongoPackageForSeries(c *gc.C) { This is unrelated ...
10 years, 1 month ago (2014-03-31 11:23:17 UTC) #2
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-31 11:40:03 UTC) #3
rog
LGTM with a few suggestions below. https://codereview.appspot.com/82550043/diff/2/agent/mongo/mongo.go File agent/mongo/mongo.go (right): https://codereview.appspot.com/82550043/diff/2/agent/mongo/mongo.go#newcode35 agent/mongo/mongo.go:35: func MongoSelectPeerAddress(addrs []instance.Address) ...
10 years, 1 month ago (2014-03-31 14:57:23 UTC) #4
wwitzel3
https://codereview.appspot.com/82550043/diff/2/agent/mongo/mongo.go File agent/mongo/mongo.go (right): https://codereview.appspot.com/82550043/diff/2/agent/mongo/mongo.go#newcode35 agent/mongo/mongo.go:35: func MongoSelectPeerAddress(addrs []instance.Address) string { On 2014/03/31 14:57:23, rog ...
10 years, 1 month ago (2014-03-31 15:19:39 UTC) #5
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-31 15:21:22 UTC) #6
rog
10 years, 1 month ago (2014-03-31 18:59:26 UTC) #7
still LGTM

https://codereview.appspot.com/82550043/diff/20001/agent/mongo/mongo_test.go
File agent/mongo/mongo_test.go (right):

https://codereview.appspot.com/82550043/diff/20001/agent/mongo/mongo_test.go#...
agent/mongo/mongo_test.go:147: {
if you put the { on the previous line,
you can lose an indentation level.

https://codereview.appspot.com/82550043/diff/20001/agent/mongo/mongo_test.go#...
agent/mongo/mongo_test.go:153: {
this would go on the previous line too.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b