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 |