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

Unified Diff: filter/dscache/support.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 | « filter/dscache/ds_txn.go ('k') | filter/featureBreaker/rds.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/dscache/support.go
diff --git a/filter/dscache/support.go b/filter/dscache/support.go
index da6866b825a35e08541b67ffeb69465b5d1f810c..4e9b38e7e7b6862f6c14474010f0522dc353bb8b 100644
--- a/filter/dscache/support.go
+++ b/filter/dscache/support.go
@@ -63,7 +63,7 @@ func (s *supportContext) mkAllKeys(keys []*ds.Key) []string {
size := 0
nums := make([]int, len(keys))
for i, key := range keys {
- if !key.Incomplete() {
+ if !key.IsIncomplete() {
shards := s.numShards(key)
nums[i] = shards
size += shards
@@ -74,7 +74,7 @@ func (s *supportContext) mkAllKeys(keys []*ds.Key) []string {
}
ret := make([]string, 0, size)
for i, key := range keys {
- if !key.Incomplete() {
+ if !key.IsIncomplete() {
keySuffix := HashKey(key)
for shard := 0; shard < nums[i]; shard++ {
ret = append(ret, fmt.Sprintf(KeyFormat, shard, keySuffix))
« no previous file with comments | « filter/dscache/ds_txn.go ('k') | filter/featureBreaker/rds.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698