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

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: Rebase, comments. Created 4 years, 6 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/dscache/ds.go » ('j') | no next file with comments »
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 d96fe6681d2943a5c41fb5ac5739ab5e6ae05802..418878fdf3927eb2705f03d0ed34bd10ed66e2ce 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, cb ds.NewKeyCB) error {
+ return r.c.AllocateIDs.up(r.ds.AllocateIDs(keys, cb))
}
func (r *dsCounter) DecodeCursor(s string) (ds.Cursor, error) {
@@ -61,7 +60,7 @@ func (r *dsCounter) GetMulti(keys []*ds.Key, meta ds.MultiMetaGetter, cb ds.GetM
return r.c.GetMulti.upFilterStop(r.ds.GetMulti(keys, meta, cb))
}
-func (r *dsCounter) PutMulti(keys []*ds.Key, vals []ds.PropertyMap, cb ds.PutMultiCB) error {
+func (r *dsCounter) PutMulti(keys []*ds.Key, vals []ds.PropertyMap, cb ds.NewKeyCB) error {
return r.c.PutMulti.upFilterStop(r.ds.PutMulti(keys, vals, cb))
}
« no previous file with comments | « no previous file | filter/dscache/ds.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698