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

Unified Diff: filter/dscache/ds_txn_state.go

Issue 1695833002: dscache: Only log unusual memcache errors. (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Rewrite with errors.Filter Created 4 years, 10 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: filter/dscache/ds_txn_state.go
diff --git a/filter/dscache/ds_txn_state.go b/filter/dscache/ds_txn_state.go
index 4497fcb99aa04720c4ece8d6f9eb56f01287b9c4..40019bf3ee34c8a3fa467590ef3a04c2d9a06626 100644
--- a/filter/dscache/ds_txn_state.go
+++ b/filter/dscache/ds_txn_state.go
@@ -60,8 +60,7 @@ func (s *dsTxnState) release(sc *supportContext) {
delKeys = append(delKeys, k)
}
- err := sc.mc.DeleteMulti(delKeys)
- if err != nil {
+ if err := filterMCErr(sc.mc.DeleteMulti(delKeys)); err != nil {
(log.Fields{log.ErrorKey: err}).Warningf(
sc.c, "dscache: txn.release: memcache.DeleteMulti")
}
« filter/dscache/ds.go ('K') | « filter/dscache/ds.go ('k') | filter/dscache/support.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698