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

Issue 6011054: store: collect statistics for /charm-info and /charm/*

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by niemeyer
Modified:
12 years ago
Reviewers:
mp+101818, rog
Visibility:
Public.

Description

store: collect statistics for /charm-info and /charm/* https://code.launchpad.net/~niemeyer/juju/go-store-stats-collect/+merge/101818 Requires: https://code.launchpad.net/~niemeyer/juju/go-store-stats/+merge/101442 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 5

Patch Set 2 : store: collect statistics for /charm-info and /charm/* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -31 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M store/server.go View 2 chunks +21 lines, -0 lines 0 comments Download
M store/server_test.go View 2 chunks +44 lines, -31 lines 0 comments Download

Messages

Total messages: 4
niemeyer
Please take a look.
12 years ago (2012-04-12 21:16:59 UTC) #1
rog
LGTM; a couple of minor queries below. https://codereview.appspot.com/6011054/diff/1/store/server.go File store/server.go (right): https://codereview.appspot.com/6011054/diff/1/store/server.go#newcode83 store/server.go:83: skey = ...
12 years ago (2012-04-17 08:38:43 UTC) #2
niemeyer
*** Submitted: store: collect statistics for /charm-info and /charm/* R=rog CC= https://codereview.appspot.com/6011054 https://codereview.appspot.com/6011054/diff/1/store/server.go File store/server.go ...
12 years ago (2012-04-17 12:47:29 UTC) #3
rog
12 years ago (2012-04-17 13:16:38 UTC) #4
https://codereview.appspot.com/6011054/diff/1/store/server.go
File store/server.go (right):

https://codereview.appspot.com/6011054/diff/1/store/server.go#newcode83
store/server.go:83: skey = []string{"charm-missing", curl.Series, curl.Name,
curl.User}
On 2012/04/17 12:47:29, niemeyer wrote:
> On 2012/04/17 08:38:43, rog wrote:
> > why does it matter if curl.User is blank here? having a key of the same
length
> > even when there's no user seems like it might be ok.
> 
> An empty string is still a token. There's a difference between matching
> foo:bar:, foo::, and foo:*.

an empty string is still a token, but why do you mind? letting "charm-missing::"
match charms with no user name seems like it might be ok.
Sign in to reply to this message.

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