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

Unified Diff: go/src/infra/gae/libs/gae/memory/plist.go

Issue 1227183003: Change RawDatastore to do less reflection. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@move_dummy
Patch Set: fix No/ShouldIndex Created 5 years, 5 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 | « go/src/infra/gae/libs/gae/memory/datastore_query.go ('k') | go/src/infra/gae/libs/gae/memory/plist_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/gae/libs/gae/memory/plist.go
diff --git a/go/src/infra/gae/libs/gae/memory/plist.go b/go/src/infra/gae/libs/gae/memory/plist.go
index 09cfec514c826f817a271b01f121500a6147b22a..13f9bc8b9511006ebd0fb600ec2c78a282244415 100644
--- a/go/src/infra/gae/libs/gae/memory/plist.go
+++ b/go/src/infra/gae/libs/gae/memory/plist.go
@@ -29,7 +29,7 @@ func defaultIndicies(kind string, pmap gae.DSPropertyMap) []*qIndex {
for name, pvals := range pmap {
needsIndex := false
for _, v := range pvals {
- if !v.NoIndex() {
+ if v.IndexSetting() == gae.ShouldIndex {
needsIndex = true
break
}
@@ -71,7 +71,7 @@ func partiallySerialize(pm gae.DSPropertyMap) (ret serializedIndexablePmap) {
for k, vals := range pm {
newVals := make(serializedPvals, 0, len(vals))
for _, v := range vals {
- if v.NoIndex() {
+ if v.IndexSetting() == gae.NoIndex {
continue
}
buf.Reset()
« no previous file with comments | « go/src/infra/gae/libs/gae/memory/datastore_query.go ('k') | go/src/infra/gae/libs/gae/memory/plist_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698