OLD | NEW |
---|---|
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 Loading... | |
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 } |
OLD | NEW |