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

Issue 6009047: store: don't add unknown tokens to db when summing stats

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

Description

store: don't add unknown tokens to db when summing stats https://code.launchpad.net/~niemeyer/juju/go-store-stats-readonly/+merge/101673 Requires: https://code.launchpad.net/~niemeyer/juju/go-store-stats/+merge/101442 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : store: don't add unknown tokens to db when summing stats #

Patch Set 3 : store: don't add unknown tokens to db when summing stats #

Total comments: 2

Patch Set 4 : store: don't add unknown tokens to db when summing stats #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -8 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M store/store.go View 1 2 3 4 chunks +20 lines, -8 lines 0 comments Download
M store/store_test.go View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 6
niemeyer
Please take a look.
12 years, 1 month ago (2012-04-12 02:06:19 UTC) #1
niemeyer
Please take a look.
12 years, 1 month ago (2012-04-12 02:15:55 UTC) #2
niemeyer
Please take a look.
12 years, 1 month ago (2012-04-16 23:57:39 UTC) #3
fwereade
LGTM
12 years, 1 month ago (2012-04-17 13:12:45 UTC) #4
rog
LGTM https://codereview.appspot.com/6009047/diff/5001/store/store.go File store/store.go (right): https://codereview.appspot.com/6009047/diff/5001/store/store.go#newcode105 store/store.go:105: // the key content and size from the ...
12 years, 1 month ago (2012-04-17 13:26:32 UTC) #5
niemeyer
12 years, 1 month ago (2012-04-17 17:25:52 UTC) #6
*** Submitted:

store: don't add unknown tokens to db when summing stats

R=fwereade, rog
CC=
https://codereview.appspot.com/6009047

https://codereview.appspot.com/6009047/diff/5001/store/store.go
File store/store.go (right):

https://codereview.appspot.com/6009047/diff/5001/store/store.go#newcode105
store/store.go:105: // the key content and size from the actual words used in
key.
On 2012/04/17 13:26:33, rog wrote:
> // If write is true, the key will be created if necessary.
> 
> or alternatively, since all the language around the CL and the tests is
talking
> about read-onlyness, you could invert the bool and use "read".
> 
> // If read is true, the key will returned only if
> // it has already been created.

Done.
Sign in to reply to this message.

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