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

Unified Diff: impl/memory/memcache.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 | « impl/memory/info.go ('k') | impl/memory/memcache_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/memory/memcache.go
diff --git a/impl/memory/memcache.go b/impl/memory/memcache.go
index 415ca1611752be6ea3db600393f2210719b8a5e1..d22b5c0234e28d869ce2af138d96b62df9f269ea 100644
--- a/impl/memory/memcache.go
+++ b/impl/memory/memcache.go
@@ -165,7 +165,7 @@ func useMC(c context.Context) context.Context {
lck.Lock()
defer lck.Unlock()
- ns := curGID(ic).namespace
+ ns, _ := curGID(ic).getNamespace()
mcd, ok := mcdMap[ns]
if !ok {
mcd = &memcacheData{items: map[string]*mcDataItem{}}
« no previous file with comments | « impl/memory/info.go ('k') | impl/memory/memcache_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698