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

Unified Diff: impl/memory/datastore_index_selection.go

Issue 1369353003: Make impl/memory have an AppID. (Closed) Base URL: https://github.com/luci/gae.git@fix_consistent
Patch Set: 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
Index: impl/memory/datastore_index_selection.go
diff --git a/impl/memory/datastore_index_selection.go b/impl/memory/datastore_index_selection.go
index ad76bb7c04ddaa4f2bda4d4d7d9beb126e84e81c..9124624afaa38b210d94b6d598ff608bf7c6ebe2 100644
--- a/impl/memory/datastore_index_selection.go
+++ b/impl/memory/datastore_index_selection.go
@@ -36,6 +36,7 @@ func (e *ErrMissingIndex) Error() string {
// deduplication is applied externally
// projection / keysonly / entity retrieval is done externally
type reducedQuery struct {
+ aid string
ns string
kind string
@@ -378,7 +379,7 @@ func generate(q *reducedQuery, idx *indexDefinitionSortable, c *constraints) *it
if def.start != nil {
offset := 0
if len(q.suffixFormat) > 1 {
- chunks, _ := parseSuffix(q.ns, q.suffixFormat, def.start, 1)
+ chunks, _ := parseSuffix(q.aid, q.ns, q.suffixFormat, def.start, 1)
offset = len(chunks[0])
}
if !bytes.HasPrefix(def.start[offset:], chopped) {
@@ -392,7 +393,7 @@ func generate(q *reducedQuery, idx *indexDefinitionSortable, c *constraints) *it
if def.end != nil {
offset := 0
if len(q.suffixFormat) > 1 {
- chunks, _ := parseSuffix(q.ns, q.suffixFormat, def.end, 1)
+ chunks, _ := parseSuffix(q.aid, q.ns, q.suffixFormat, def.end, 1)
offset = len(chunks[0])
}
if !bytes.HasPrefix(def.end[offset:], chopped) {

Powered by Google App Engine
This is Rietveld 408576698