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

Issue 7650048: state: implement allWatcherStateBacking

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, dave, mp+153900, TheMue
Visibility:
Public.

Description

state: implement allWatcherStateBacking This completes the initial implementation of StateWatcher - in the next branch, we'll change the API to use it. https://code.launchpad.net/~rogpeppe/juju-core/245-allwatcher-state-backing/+merge/153900 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: implement allWatcherStateBacking #

Total comments: 8

Patch Set 3 : state: implement allWatcherStateBacking #

Total comments: 9

Patch Set 4 : state: implement allWatcherStateBacking #

Patch Set 5 : state: implement allWatcherStateBacking #

Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -58 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M state/conn_test.go View 1 2 3 2 chunks +2 lines, -24 lines 0 comments Download
M state/megawatcher.go View 1 2 3 3 chunks +115 lines, -1 line 0 comments Download
M state/megawatcher_internal_test.go View 1 2 3 4 2 chunks +373 lines, -33 lines 0 comments Download

Messages

Total messages: 7
rog
Please take a look.
11 years, 1 month ago (2013-03-18 18:28:34 UTC) #1
dave_cheney.net
Some initial comments. https://codereview.appspot.com/7650048/diff/2001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/7650048/diff/2001/state/megawatcher.go#newcode355 state/megawatcher.go:355: c *mgo.Collection please don't call this ...
11 years, 1 month ago (2013-03-19 01:05:30 UTC) #2
rog
Please take a look. https://codereview.appspot.com/7650048/diff/2001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/7650048/diff/2001/state/megawatcher.go#newcode355 state/megawatcher.go:355: c *mgo.Collection On 2013/03/19 01:05:30, ...
11 years, 1 month ago (2013-03-19 07:31:59 UTC) #3
dimitern
Nice, LGTM, just some trivials. https://codereview.appspot.com/7650048/diff/8001/state/megawatcher.go File state/megawatcher.go (right): https://codereview.appspot.com/7650048/diff/8001/state/megawatcher.go#newcode433 state/megawatcher.go:433: log.Printf("collections: %+v", b.collectionByName) Debugf? ...
11 years, 1 month ago (2013-03-19 08:50:15 UTC) #4
TheMue
LGTM
11 years, 1 month ago (2013-03-19 15:09:13 UTC) #5
rog
*** Submitted: state: implement allWatcherStateBacking This completes the initial implementation of StateWatcher - in the ...
11 years, 1 month ago (2013-03-20 15:09:58 UTC) #6
dave_cheney.net
11 years, 1 month ago (2013-03-25 02:21:01 UTC) #7
Some more suggestions, I think we're all commenting on older version.

https://codereview.appspot.com/7650048/diff/8001/state/conn_test.go
File state/conn_test.go (right):

https://codereview.appspot.com/7650048/diff/8001/state/conn_test.go#newcode59
state/conn_test.go:59: return s.State.AddTestingCharm(c, name)
You may want to consider embedding the *state.State into ConnSuite, so this
forwarding method is not needed.

https://codereview.appspot.com/7650048/diff/8001/state/megawatcher.go
File state/megawatcher.go (right):

https://codereview.appspot.com/7650048/diff/8001/state/megawatcher.go#newcode343
state/megawatcher.go:343: type allWatcherStateBacking struct {
suggestion: stateBackedAllWatcher ?

https://codereview.appspot.com/7650048/diff/8001/state/megawatcher.go#newcode354
state/megawatcher.go:354: type allWatcherStateCollection struct {
suggestion: allWatcherCollection; this doesn't have a state.State member.
Sign in to reply to this message.

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