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

Unified Diff: service/datastore/pls_impl.go

Issue 1270113002: Re-add metadata passthrough on Get operations (Closed) Base URL: https://github.com/luci/gae.git@fix_other_interfaces
Patch Set: safer, add tests 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/pls_impl.go
diff --git a/service/datastore/pls_impl.go b/service/datastore/pls_impl.go
index 9a369123c59cf58b2431ab169fa568f2638bcfea..7e584779bd44c56011b4987ff347f5aa53c743fa 100644
--- a/service/datastore/pls_impl.go
+++ b/service/datastore/pls_impl.go
@@ -340,6 +340,10 @@ func (p *structPLS) GetMeta(key string) (interface{}, error) {
return val, nil
}
+func (p *structPLS) GetMetaDefault(key string, def interface{}) interface{} {
+ return GetMetaDefaultImpl(p.GetMeta, key, def)
+}
+
func (p *structPLS) SetMeta(key string, val interface{}) (err error) {
if err = p.Problem(); err != nil {
return

Powered by Google App Engine
This is Rietveld 408576698