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

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: 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..1521f415d8be689a3f142e269216c48273af817a 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) error {
+ return d.state.parentDS.AllocateIDs(keys)
}
func (d *dsTxnBuf) GetMulti(keys []*ds.Key, metas ds.MultiMetaGetter, cb ds.GetMultiCB) error {
« no previous file with comments | « filter/featureBreaker/rds.go ('k') | filter/txnBuf/state.go » ('j') | impl/dummy/dummy.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698