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

Unified Diff: filter/txnBuf/ds_txn.go

Issue 2007123002: datastore: Update AllocateIDs to take keys. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Add empty arg/key short-circuits for other varidic methods. 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
Index: filter/txnBuf/ds_txn.go
diff --git a/filter/txnBuf/ds_txn.go b/filter/txnBuf/ds_txn.go
index bc72eae5d374fd8ab089d53cebfecefe825ddc53..cc5203b847d72afb4a38c0bbf7fc503b0b0e76c0 100644
--- a/filter/txnBuf/ds_txn.go
+++ b/filter/txnBuf/ds_txn.go
@@ -32,8 +32,8 @@ func (d *dsTxnBuf) DecodeCursor(s string) (ds.Cursor, error) {
return d.state.parentDS.DecodeCursor(s)
}
-func (d *dsTxnBuf) AllocateIDs(incomplete *ds.Key, n int) (start int64, err error) {
- return d.state.parentDS.AllocateIDs(incomplete, n)
+func (d *dsTxnBuf) AllocateIDs(keys []*ds.Key, cb ds.PutMultiCB) error {
+ return d.state.parentDS.AllocateIDs(keys, cb)
}
func (d *dsTxnBuf) GetMulti(keys []*ds.Key, metas ds.MultiMetaGetter, cb ds.GetMultiCB) error {

Powered by Google App Engine
This is Rietveld 408576698