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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package datastore 5 package datastore
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 9
10 "github.com/luci/gae/service/info" 10 "github.com/luci/gae/service/info"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 for _, err := range me.(errors.MultiError) { 110 for _, err := range me.(errors.MultiError) {
111 cb(err) 111 cb(err)
112 } 112 }
113 return nil 113 return nil
114 } 114 }
115 return tcf.RawInterface.DeleteMulti(keys, cb) 115 return tcf.RawInterface.DeleteMulti(keys, cb)
116 } 116 }
117 117
118 func applyCheckFilter(c context.Context, i RawInterface) RawInterface { 118 func applyCheckFilter(c context.Context, i RawInterface) RawInterface {
119 inf := info.Get(c) 119 inf := info.Get(c)
120 » return &checkFilter{i, inf.AppID(), inf.GetNamespace()} 120 » aid := inf.AppID()
121 » if inf.IsDevAppServer() {
122 » » aid = "dev~" + aid
123 » }
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()
124 » return &checkFilter{i, aid, inf.GetNamespace()}
121 } 125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698