Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: filter/dscache/plan.go

Issue 1355783002: Refactor keys and queries in datastore service and implementation. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: appease errcheck Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « filter/dscache/globalconfig.go ('k') | filter/dscache/support.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/dscache/plan.go
diff --git a/filter/dscache/plan.go b/filter/dscache/plan.go
index 7dbdbf1e4bc7210300a4777fc237014f56804475..de1901bce142b44b6e1aff26b8cae164d85015d4 100644
--- a/filter/dscache/plan.go
+++ b/filter/dscache/plan.go
@@ -15,7 +15,7 @@ import (
)
type facts struct {
- getKeys []ds.Key
+ getKeys []*ds.Key
getMeta ds.MultiMetaGetter
lockItems []mc.Item
nonce []byte
@@ -32,7 +32,7 @@ type plan struct {
// toGet is a list of datstore keys to retrieve in the call down to the
// underlying datastore. It will have length >= facts.getKeys. All the keys
// in this will be valid (not nil).
- toGet []ds.Key
+ toGet []*ds.Key
// toGetMeta is a MultiMetaGetter to be passed in the call down to the
// underlying datastore.GetMulti. It has the same length as toGet.
@@ -61,7 +61,7 @@ type plan struct {
// - get and m are the pair of values that will be passed to datastore.GetMulti
// - save is the memcache item to save the result back to. If it's nil, then
// it will not be saved back to memcache.
-func (p *plan) add(idx int, get ds.Key, m ds.MetaGetter, save mc.Item) {
+func (p *plan) add(idx int, get *ds.Key, m ds.MetaGetter, save mc.Item) {
p.idxMap = append(p.idxMap, idx)
p.toGet = append(p.toGet, get)
« no previous file with comments | « filter/dscache/globalconfig.go ('k') | filter/dscache/support.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698