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

Unified Diff: impl/memory/datastore_index.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Created 4 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.go
diff --git a/impl/memory/datastore_index.go b/impl/memory/datastore_index.go
index 7f3a839e9c2509ae77e11c017b2ba113208b4625..09c05fa8eff69a2405b89f90c2953450cfe9c2d6 100644
--- a/impl/memory/datastore_index.go
+++ b/impl/memory/datastore_index.go
@@ -239,7 +239,7 @@ func addIndexes(store memStore, aid string, compIdx []*ds.IndexDefinition) {
pm, err := rpm(i.Val)
memoryCorruption(err)
- prop, err := serialize.ReadProperty(bytes.NewBuffer(i.Key), serialize.WithoutContext, aid, ns)
+ prop, err := serialize.ReadProperty(bytes.NewBuffer(i.Key), serialize.WithoutContext, ds.KeyContext{aid, ns})
memoryCorruption(err)
k := prop.Value().(*ds.Key)

Powered by Google App Engine
This is Rietveld 408576698