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

Unified Diff: filter/count/rds.go

Issue 2007123002: datastore: Update AllocateIDs to take keys. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Created 4 years, 7 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 | « no previous file | filter/featureBreaker/rds.go » ('j') | impl/dummy/dummy.go » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/rds.go
diff --git a/filter/count/rds.go b/filter/count/rds.go
index 69e903aea911634fca022ddd4881380048793255..33bfef701a65af6a3ab8a30eee58676e06552087 100644
--- a/filter/count/rds.go
+++ b/filter/count/rds.go
@@ -30,9 +30,8 @@ type dsCounter struct {
var _ ds.RawInterface = (*dsCounter)(nil)
-func (r *dsCounter) AllocateIDs(incomplete *ds.Key, n int) (int64, error) {
- start, err := r.ds.AllocateIDs(incomplete, n)
- return start, r.c.AllocateIDs.up(err)
+func (r *dsCounter) AllocateIDs(keys []*ds.Key) error {
+ return r.c.AllocateIDs.up(r.ds.AllocateIDs(keys))
}
func (r *dsCounter) DecodeCursor(s string) (ds.Cursor, error) {
« no previous file with comments | « no previous file | filter/featureBreaker/rds.go » ('j') | impl/dummy/dummy.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698