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

Unified Diff: impl/prod/datastore_key.go

Issue 2353063004: Add "MkKeyContext" KeyContext generation function. (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
« no previous file with comments | « impl/memory/testing_utils_test.go ('k') | impl/prod/raw_datastore_type_converter.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/prod/datastore_key.go
diff --git a/impl/prod/datastore_key.go b/impl/prod/datastore_key.go
index e4e37e8bb9d9294e474167561ac5a03cadad6b7d..eea7922f10b55eca0da5a2729a8dce174cb37992 100644
--- a/impl/prod/datastore_key.go
+++ b/impl/prod/datastore_key.go
@@ -21,7 +21,7 @@ func dsR2F(k *datastore.Key) *ds.Key {
if k == nil {
return nil
}
- kc := ds.KeyContext{k.AppID(), k.Namespace()}
+ kc := ds.MkKeyContext(k.AppID(), k.Namespace())
count := 0
for nk := k; nk != nil; nk = nk.Parent() {
« no previous file with comments | « impl/memory/testing_utils_test.go ('k') | impl/prod/raw_datastore_type_converter.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698