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

Unified Diff: filter/dscache/context.go

Issue 1916463004: impl/memory: Disallow empty namespace. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Rbase. Created 4 years, 8 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/count/gi.go ('k') | filter/txnBuf/state.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/dscache/context.go
diff --git a/filter/dscache/context.go b/filter/dscache/context.go
index 87477802d1b16865193911103de8c36ce683e4e8..6d17f1c852bc514b6323a114de298c11ce3efb0a 100644
--- a/filter/dscache/context.go
+++ b/filter/dscache/context.go
@@ -46,10 +46,11 @@ func FilterRDS(c context.Context, shardsForKey func(*ds.Key) int) context.Contex
func AlwaysFilterRDS(c context.Context, shardsForKey func(*ds.Key) int) context.Context {
return ds.AddRawFilters(c, func(c context.Context, ds ds.RawInterface) ds.RawInterface {
i := info.Get(c)
+ ns, _ := i.GetNamespace()
sc := &supportContext{
i.AppID(),
- i.GetNamespace(),
+ ns,
c,
mc.Get(c),
mathrand.Get(c),
« no previous file with comments | « filter/count/gi.go ('k') | filter/txnBuf/state.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698