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

Issue 7062062: uniter: set subordinates to Dying

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by fwereade
Modified:
11 years, 3 months ago
Reviewers:
rog, mp+142673, TheMue
Visibility:
Public.

Description

uniter: set subordinates to Dying ...once the principal agent is Dying. https://code.launchpad.net/~fwereade/juju-core/subordinates-cascade-principal-dying/+merge/142673 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : uniter: set subordinates to Dying #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -16 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/service_test.go View 2 chunks +4 lines, -4 lines 0 comments Download
M state/unit.go View 1 1 chunk +5 lines, -3 lines 0 comments Download
M worker/uniter/modes.go View 1 2 chunks +13 lines, -1 line 0 comments Download
M worker/uniter/uniter_test.go View 1 2 chunks +27 lines, -8 lines 0 comments Download

Messages

Total messages: 4
fwereade
Please take a look.
11 years, 3 months ago (2013-01-10 11:51:20 UTC) #1
TheMue
LGTM
11 years, 3 months ago (2013-01-10 11:55:50 UTC) #2
rog
LGTM with one simplification below https://codereview.appspot.com/7062062/diff/1/state/unit.go File state/unit.go (right): https://codereview.appspot.com/7062062/diff/1/state/unit.go#newcode227 state/unit.go:227: func (u *Unit) SubordinateNames() ...
11 years, 3 months ago (2013-01-10 12:04:13 UTC) #3
fwereade
11 years, 3 months ago (2013-01-10 15:56:37 UTC) #4
*** Submitted:

uniter: set subordinates to Dying

...once the principal agent is Dying.

R=TheMue, rog
CC=
https://codereview.appspot.com/7062062

https://codereview.appspot.com/7062062/diff/1/state/unit.go
File state/unit.go (right):

https://codereview.appspot.com/7062062/diff/1/state/unit.go#newcode227
state/unit.go:227: func (u *Unit) SubordinateNames() (names []string) {
On 2013/01/10 12:04:13, rog wrote:
> names := make([]string, len(u.doc.Subordinates)
> copy(names, u.doc.Subordinates)
> return names

Done.
Sign in to reply to this message.

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