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

Unified Diff: service/datastore/checkfilter.go

Issue 1289323002: Fix miscellaneous prod bugs. (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Remove superfluous function added in PS#1. Created 5 years, 4 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: service/datastore/checkfilter.go
diff --git a/service/datastore/checkfilter.go b/service/datastore/checkfilter.go
index 2dd9ea3b520db3c7221907f96dccbfa41556e849..83c7fdff0e5a0397cb9e83c4cdb879582ca86e18 100644
--- a/service/datastore/checkfilter.go
+++ b/service/datastore/checkfilter.go
@@ -117,5 +117,9 @@ func (tcf *checkFilter) DeleteMulti(keys []Key, cb DeleteMultiCB) error {
func applyCheckFilter(c context.Context, i RawInterface) RawInterface {
inf := info.Get(c)
- return &checkFilter{i, inf.AppID(), inf.GetNamespace()}
+ aid := inf.AppID()
+ if inf.IsDevAppServer() {
+ aid = "dev~" + aid
+ }
iannucci 2015/08/15 21:50:54 This is the wrong place to apply this. memory.info
dnj (Google) 2015/08/16 06:11:06 The actual AppID (as returned by appengine.AppID()
+ return &checkFilter{i, aid, inf.GetNamespace()}
}

Powered by Google App Engine
This is Rietveld 408576698