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

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: Remove memcache. 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
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{}}

Powered by Google App Engine
This is Rietveld 408576698