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

Issue 7815044: state: implement allWatcher.run

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by rog
Modified:
11 years, 1 month ago
Reviewers:
dimitern, mp+153610, fwereade
Visibility:
Public.

Description

state: implement allWatcher.run We also implement StateWatcher methods to talk to the running allWatcher (currently temporarily renamed to xStateWatcher to avoid messing with the existing dummy StateWatcher). https://code.launchpad.net/~rogpeppe/juju-core/244-allwatcher-loop/+merge/153610 Requires: https://code.launchpad.net/~rogpeppe/juju-core/243-allwatcher-respond/+merge/153519 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: implement allWatcher.run #

Patch Set 3 : state: implement allWatcher.run #

Total comments: 5

Patch Set 4 : state: implement allWatcher.run #

Patch Set 5 : state: implement allWatcher.run #

Total comments: 11

Patch Set 6 : state: implement allWatcher.run #

Patch Set 7 : state: implement allWatcher.run #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -70 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M state/apiserver/apiserver.go View 1 2 chunks +3 lines, -3 lines 0 comments Download
M state/megawatcher.go View 1 2 3 4 5 7 chunks +121 lines, -15 lines 0 comments Download
M state/megawatcher_internal_test.go View 1 2 3 19 chunks +230 lines, -52 lines 0 comments Download

Messages

Total messages: 8
rog
Please take a look.
11 years, 1 month ago (2013-03-15 17:45:11 UTC) #1
dimitern
Very nice! LGTM with just some trivials. https://codereview.appspot.com/7815044/diff/5001/state/apiserver/apiserver.go File state/apiserver/apiserver.go (left): https://codereview.appspot.com/7815044/diff/5001/state/apiserver/apiserver.go#oldcode569 state/apiserver/apiserver.go:569: Err() error ...
11 years, 1 month ago (2013-03-15 18:18:00 UTC) #2
rog
Please take a look.
11 years, 1 month ago (2013-03-18 12:41:51 UTC) #3
fwereade
Looking good, I think, but one significant question: https://codereview.appspot.com/7815044/diff/13001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/7815044/diff/13001/state/megawatcher.go#newcode69 state/megawatcher.go:69: return ...
11 years, 1 month ago (2013-03-18 13:44:32 UTC) #4
fwereade
LGTM https://codereview.appspot.com/7815044/diff/13001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/7815044/diff/13001/state/megawatcher.go#newcode200 state/megawatcher.go:200: if err := aw.backing.getAll(aw.all); err != nil { ...
11 years, 1 month ago (2013-03-18 13:48:12 UTC) #5
rog
Please take a look. https://codereview.appspot.com/7815044/diff/13001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/7815044/diff/13001/state/megawatcher.go#newcode69 state/megawatcher.go:69: return w.all.tomb.Err() On 2013/03/18 13:44:33, ...
11 years, 1 month ago (2013-03-18 15:34:53 UTC) #6
fwereade
Still LGTM :) https://codereview.appspot.com/7815044/diff/13001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/7815044/diff/13001/state/megawatcher.go#newcode69 state/megawatcher.go:69: return w.all.tomb.Err() On 2013/03/18 15:34:53, rog ...
11 years, 1 month ago (2013-03-18 15:38:41 UTC) #7
rog
11 years, 1 month ago (2013-03-18 15:58:17 UTC) #8
*** Submitted:

state: implement allWatcher.run

We also implement StateWatcher methods
to talk to the running allWatcher (currently
temporarily renamed to xStateWatcher
to avoid messing with the existing dummy
StateWatcher).

R=dimitern, fwereade
CC=
https://codereview.appspot.com/7815044
Sign in to reply to this message.

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