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

Unified Diff: impl/prod/raw_datastore.go

Issue 1358063003: Add Kind/StringID/IntID back to Key. (Closed) Base URL: https://github.com/luci/gae.git@add_allocate_ids
Patch Set: Created 5 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/prod/raw_datastore.go
diff --git a/impl/prod/raw_datastore.go b/impl/prod/raw_datastore.go
index 3a9b1d96c355155c41ff02eb83bcf4bbb663edc1..7eadfe3d2b080551765643cb0c7e8cf14332bc5c 100644
--- a/impl/prod/raw_datastore.go
+++ b/impl/prod/raw_datastore.go
@@ -52,7 +52,7 @@ func (d rdsImpl) AllocateIDs(incomplete *ds.Key, n int) (start int64, err error)
return
}
- start, _, err = datastore.AllocateIDs(d, incomplete.Last().Kind, par, n)
+ start, _, err = datastore.AllocateIDs(d, incomplete.Kind(), par, n)
return
}

Powered by Google App Engine
This is Rietveld 408576698