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

Unified Diff: impl/memory/datastore_index.go

Issue 1302813003: impl/memory: Implement Queries (Closed) Base URL: https://github.com/luci/gae.git@add_multi_iterator
Patch Set: Created 5 years, 4 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.go
diff --git a/impl/memory/datastore_index.go b/impl/memory/datastore_index.go
index 37200d9c22fde7df6a3d3a14795f615ec3c947a9..9bf8c3c9589c3a7dd37b3c96e215ebc7edfaa8f7 100644
--- a/impl/memory/datastore_index.go
+++ b/impl/memory/datastore_index.go
@@ -14,8 +14,6 @@ import (
"github.com/luci/gkvlite"
)
-var indexCreationDeterministic = false
-
type qIndexSlice []*ds.IndexDefinition
func (s qIndexSlice) Len() int { return len(s) }
@@ -39,7 +37,7 @@ func defaultIndicies(kind string, pmap ds.PropertyMap) []*ds.IndexDefinition {
ret = append(ret, &ds.IndexDefinition{Kind: kind, SortBy: []ds.IndexColumn{{Property: name}}})
ret = append(ret, &ds.IndexDefinition{Kind: kind, SortBy: []ds.IndexColumn{{Property: name, Direction: ds.DESCENDING}}})
}
- if indexCreationDeterministic {
+ if serializationDeterministic {
sort.Sort(ret)
}
return ret

Powered by Google App Engine
This is Rietveld 408576698